Categories

ID #1013

CMDaemon won't restart my service like it is supposed an class="highlight">toan>. But I can start the service by running the init script manually. What's going on?

Normally CMDaemon restarts a service that fails.

 

However, one of the possibilities is that CMD has given up due an class="highlight">toan> persistent failure. In the Administraan class="highlight">toan>r Manual, the section on managing and configuring services (in the chapter on Configuring the Cluster) explains:

 

    The an style="font-family: terminal,monaco;">resetan> option is an class="highlight">notan> a service option in the regular shell, but is
used by CMDaemon (an style="font-family: terminal,monaco;">cmshan> and an style="font-family: terminal,monaco;">cmguian>) an class="highlight">toan> clear a an style="font-family: terminal,monaco;">Failedan> state of a service
as seen by the monian class="highlight">toan>ring system.
    The monian class="highlight">toan>ring system sets the state of a service an class="highlight">toan> an style="font-family: terminal,monaco;">Failedan> if 10 restarts
of the service in a row fail. CMDaemon then no longer attempts an class="highlight">toan> restart
the service until the an style="font-family: terminal,monaco;">resetan> option is executed.



So, what may be needed is that the service be an class="highlight">toan>ld an class="highlight">toan> reset. For example

an style="font-family: terminal,monaco;">[head->device[head]->services]% status an class="highlight">ntpdan>an>
an style="font-family: terminal,monaco;">an class="highlight">ntpdan>            [  DOWN  ]an>

or

an style="font-family: terminal,monaco;">an class="highlight">ntpdan>            [FAILING ]an>


(after 10 failed restart attempts the health check ManagedServicesOK then shows:         [  FAIL  ])


an style="font-family: terminal,monaco;">[head->device[head]->services]% reset an class="highlight">ntpdan>an>

an style="font-family: terminal,monaco;">an style="font-family: terminal,monaco;">[head->device[head]->services]% start an class="highlight">ntpdan>an>an>

an style="font-family: terminal,monaco;">[head->device[head]->services]% status an class="highlight">ntpdan>an>
an style="font-family: terminal,monaco;">an class="highlight">ntpdan>            [  UP  ]an>

Tags: -

Related entries:

You cannot comment on this entry