Bug 58950

Summary: hooks to run additional program(s) after filesystems have been unmounted
Product: [Retired] Red Hat Linux Reporter: RLX Technologies <linux-dev>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED DEFERRED QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: bfox, rvokal
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-20 03:20:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.