Re: restart behavior (initscript)
Mark Hatle <[email protected]>
| Newsgroups | gmane.linux.lsb.discuss |
|---|---|
| Organization | MontaVista Software, Inc. |
| Message-ID | <[email protected]> |
Tobias Burnus wrote: > Hi, > > On Tue, 12 Aug 2003, Ademar de Souza Reis Jr. wrote: > >>On Tue, Aug 12, 2003 at 10:05:19AM -0500, Mark Hatle wrote: >> >>>Ademar de Souza Reis Jr. wrote: >>> >>>>I agree that it could be atomic, and I'm about to change our internal >>>>policy to *enforce* that behavior when possible. >>>> >>>>If it's a consensus, It would be nice to add a note like this to the "Init >>>>Script Actions" document (sorry for not providing a patch): > > > How about: Minor nitpick... but.. > --- initactions.sgml 12 Aug 2003 21:31:28 -0000 1.10 > +++ initactions.sgml 14 Aug 2003 15:29:25 -0000 > @@ -33,7 +33,10 @@ > <PARA> > If a service reloads its configuration automatically (as in the case > of cron, for example), the reload option of the init file shall > -behave as if the configuration has been reloaded successfully. > +behave as if the configuration has been reloaded successfully. The restart, > +try-restart, reload and force-reload action may be atomic; i.e. if a service > +will not be operational after a restart or reload, the script may return +is known not to be operational after a restart or reloca, the script may return > +an error without doing any further action. > </PARA> I just want to make sure it's clear to someone coming in that (at this point) the atomic action of those items is not the normal behavior, but if it's available they should use it. I'm not sure if what I wrote helps with that... --Mark