Re: Improving halt package interaction...

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

 



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

--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux