Bug 58950 - hooks to run additional program(s) after filesystems have been unmounted
Summary: hooks to run additional program(s) after filesystems have been unmounted
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-01-28 14:51 UTC by RLX Technologies
Modified: 2014-03-17 02:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-04-20 03:20:20 UTC
Embargoed:


Attachments (Terms of Use)

Description RLX Technologies 2002-01-28 14:51:23 UTC
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.

Comment 1 Bill Nottingham 2002-01-29 18:02:37 UTC
Hm.

Probably the cleanest way to do this is to have an rcH.d, or something similar.

Comment 2 Brent Fox 2002-01-29 18:07:27 UTC
notting, any idea how much time/work that would take?

Comment 3 Bill Nottingham 2002-01-29 19:41:22 UTC
It depends.

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. ;)

Comment 4 Bill Nottingham 2005-04-20 03:20:20 UTC
Closing bugs on older, no longer supported releases. Apologies for any lack of
response.


Note You need to log in before you can comment on or make changes to this bug.