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

Re: Faster shutdown and the ubuntu "multiuser" update-rc.d extention

Gabor Gombas wrote:
> IMHO there can be many init scripts that currently do not wait for the
> process to stop but they should if you want to do this refactoring. Some
> random checks:

If a package only shuts down cleanly because the rest of the shutdown
process is slow, it is already buggy. Especially on systems where the
shutdown is much faster, either due to their being fewer shutdown
scripts than usual or the cpu being a lot faster than usual, or due to
its shutdown script being reordered to run later than usual.

> - acpid: there is a sleep in "restart" but not in "stop" and IMHO it
>   does not need one - it can go without an explicit stop.
> - apache2: there is a (rather long) sleep in "restart" but not in
>   "stop". Waiting for process termination should be added.

It's fairly common to add a sleep in restart to (try to) deal with
issues such as reopening a socket.

see shy jo

Attachment: signature.asc
Description: Digital signature

Reply to: