Re: daemon stop and start during upgrade
* Luis Rodrigo Gallardo Cruz:
>> So in the end I agree that would be sensible to exit with 0, if the
>> process is not running, cause their might be different errors to occur
>> when stopping (even though I never met one), but that it would make
>> sense to describe this more clear in the policy.
>
> IIRC, lsb requires exiting with 0 in this case.
OTOH, if you want to avoid restarting a non-running service, you need
to obtain somehow that piece of informati from the init.d script run.
The exit status would be a way to do this.
If it's okay to start non-running services on upgrade, exiting with 0
is probably fine.
--
Florian Weimer <fweimer@bfk.de>
BFK edv-consulting GmbH http://www.bfk.de/
Kriegsstraße 100 tel: +49-721-96201-1
D-76133 Karlsruhe fax: +49-721-96201-99
Reply to: