Re: long daemon outages on upgrade
On Wed, Mar 13, 2002 at 02:54:21PM -0500, Branden Robinson wrote:
> Why don't we just write our maintainer scripts like this?:
> [...]
> * In the package postinst script:
> /etc/init.d/daemon restart
>
> As long as the init script is written such that it's not an error when
> you try to stop a daemon that isn't running (IMO, that should not be an
> error), I can't think of why the above wouldn't work.
I believe the issue with this approach is that start-stop-daemon cannot
accurately determine the process to kill if the corresponding executable has
been deleted, as would be the case after an upgrade.
Isn't there a way to specify that a particular package should be treated as
Essential: yes on a particular system, even though it isn't listed that way
in the status file? If such a facility exists, it's trivial to mark the
important packages as essential, so they will be configured immediately
after being unpacked.
--
- mdz
Reply to: