3 # killall Script for system downing
5 # description: kill em all
8 # Bring down all services that are still running (there shouldn't be any, so
9 # this is just a sanity check)
11 # First set up a default search path.
12 export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
19 for i in /var/lock/subsys/*; do
20 # Check if the script is there.
21 [ ! -f $i ] && continue
23 # Get the subsystem name.
24 subsys=${i#/var/lock/subsys/}
26 # Bring the subsystem down.
27 if [ -x /etc/rc.d/init.d/$subsys ]; then
28 /etc/rc.d/init.d/$subsys stop
29 elif [ -x /etc/rc.d/init.d/$subsys.init ]; then
30 /etc/rc.d/init.d/$subsys.init stop