Improving halt package interaction...
Thomas M Steenholdt
tmus at tmus.dk
Wed Nov 14 12:31:29 UTC 2007
Bill Nottingham wrote:
>
> What's needed here that can't just be done with a 'normal' script
> that runs in runlevel 0/6?
>
Other than what the other guys have mentioned, like perhaps making it
possible to run scripts after ro remounting "/", a delayed UPS poweroff
from a normal initscript is less precise, since you have no reliable
measure of how long the system will take to power down (perhaps you're
running large databases?). You could end up powering off the UPS outlets
before the system is ready for it. Or specifying a long delay, the
system might need to wait for far too long for the system to restart,
even though power returned during the shutdown. It would be much better
to call the UPS poweroff command as the very last thing with a 5-10
second delay, just before the system halts, rather than having to
specify a 5 minute delay for an initscript based solution. It's more of
a "hook" based approach, which IMO is better for this.
/Thomas
More information about the fedora-devel-list
mailing list