[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: daemon stop and start during upgrade



Hallo Florian,

Florian Weimer <fweimer@bfk.de> wrote:
> * 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.

You should disable the service at all (remove the symlinks or put a - in
/etc/runlevel.conf) and invoke-rc.d takes care of this.

Bye, Jörg.
-- 
[dpkg] We are the apt. Resistance is futile. You will be packaged.



Reply to: