Red Hat Bugzilla – Bug 58950
hooks to run additional program(s) after filesystems have been unmounted
Last modified: 2014-03-16 22:25:14 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20020104
Description of problem:
This is a feature request to exted the /etc/init.d/halt script to provide a
mechanism to run additional programs after the umount -a but before the halt.
Our specific need is to turn off the LED's on our hardware at the last possible
moment to indicate that it is safe to power off the server.
Probably the cleanest way to do this is to have an rcH.d, or something similar.
notting, any idea how much time/work that would take?
Splitting up rc.sysinit and halt in to rcS.d & rcH.d, and adding the appropriate
chkconfig/serviceconf/etc. support is probably a good week or two of work.
Adding a somewhat hackish:
[ -x /sbin/halt-local ] && /sbin/halt-local
in /etc/init.d/halt is trivial. ;)
Closing bugs on older, no longer supported releases. Apologies for any lack of