]> git.pld-linux.org Git - projects/rc-scripts.git/blobdiff - rc.d/init.d/killall
killall is now chkconfig ready.
[projects/rc-scripts.git] / rc.d / init.d / killall
index 647b2dcd9cdbd86914156159c0975c616a24eb9f..8255bcd60269080a184b7eb1e79401b604abbc60 100644 (file)
@@ -1,21 +1,32 @@
 #!/bin/sh
 # 
-# $Id: killall,v 1.4 1999/07/31 11:24:19 misiek Exp $
+# killall        Script for system downing
+#
+# chkconfig:     12345 00 90
+# description:   kill em all
+#
+# $Id: killall,v 1.5 1999/08/16 09:38:39 misiek Exp $
 # Bring down all unneeded services that are still running (there shouldn't 
 # be any, so this is just a sanity check)
 
-for i in /var/lock/subsys/*; do
-       # Check if the script is there.
-       [ ! -f $i ] && continue
-
-       # Get the subsystem name.
-       subsys=${i#/var/lock/subsys/}
-
-       # Bring the subsystem down.
-       if [ -f /etc/rc.d/init.d/$subsys.init ]; then
-               /etc/rc.d/init.d/$subsys.init stop
-       else
-               /etc/rc.d/init.d/$subsys stop
-       fi
-done
-
+case "$1" in
+  start*)
+        exit 0
+        ;;
+  stop*)
+       for i in /var/lock/subsys/*; do
+               # Check if the script is there.
+               [ ! -f $i ] && continue
+       
+               # Get the subsystem name.
+               subsys=${i#/var/lock/subsys/}
+       
+               # Bring the subsystem down.
+               if [ -f /etc/rc.d/init.d/$subsys.init ]; then
+                       /etc/rc.d/init.d/$subsys.init stop
+               else
+                       /etc/rc.d/init.d/$subsys stop
+               fi
+       done
+       ;;
+esac
This page took 0.074789 seconds and 4 git commands to generate.