3 # $Id: killall,v 1.4 1999/07/31 11:24:19 misiek Exp $
4 # Bring down all unneeded services that are still running (there shouldn't
5 # be any, so this is just a sanity check)
7 for i in /var/lock/subsys/*; do
8 # Check if the script is there.
9 [ ! -f $i ] && continue
11 # Get the subsystem name.
12 subsys=${i#/var/lock/subsys/}
14 # Bring the subsystem down.
15 if [ -f /etc/rc.d/init.d/$subsys.init ]; then
16 /etc/rc.d/init.d/$subsys.init stop
18 /etc/rc.d/init.d/$subsys stop