Re: restart behavior (initscript)
Tobias Burnus <[email protected]>
| Newsgroups | gmane.linux.lsb.discuss |
|---|---|
| Message-ID | <[email protected]> |
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: --- 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 +an error without doing any further action. </PARA> Tobias