Bug 5453 - autofs / killall
Summary: autofs / killall
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: autofs
Version: 6.0
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: David Lawrence
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-09-30 08:21 UTC by gerald
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-09-30 14:53:07 UTC
Embargoed:


Attachments (Terms of Use)

Description gerald 1999-09-30 08:21:24 UTC
The service name is automount but the init script is called
autofs. Hence the service is missed by "killall".

In addition, I suggest the following for the "killall"
script:

#!/bin/sh

# Bring down all unneeded services that are still running
(there shouldn't
# be any, so this is just a sanity check)

EXITCODE=0

for i in /var/lock/subsys/*; do
	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}

	# Bring the subsystem down.
	if [ -f /etc/rc.d/init.d/$subsys ]; then
	    /etc/rc.d/init.d/$subsys stop
	elif [ -f /etc/rc.d/init.d/$subsys.init ]; then
	    /etc/rc.d/init.d/$subsys.init stop
	else
		echo Warning: Could not stop \"$subsys\" \(no init
script\).
		EXITCODE=1
	fi
done

exit $EXITCODE

Comment 1 Bill Nottingham 1999-09-30 14:53:59 UTC
This is fixed in the latest autofs release in Raw Hide.


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