]> git.pld-linux.org Git - projects/rc-scripts.git/blobdiff - rc.d/init.d/single
- merge my private tree
[projects/rc-scripts.git] / rc.d / init.d / single
index c4f30d7d9cb94650d2ed0a32b48a2ef8c58ade02..dc219d1dc0882ae18433ecb3a4d2aab9e4317dd7 100644 (file)
@@ -12,7 +12,7 @@
 # Changes:     Grzegorz Stanislawski <stangrze@open.net.pl>
 #              Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
 # 
-# $Id: single,v 1.9.2.1 2000/10/18 20:10:50 misiek Exp $
+# $Id: single,v 1.9.2.2 2001/09/30 10:19:38 misiek Exp $
 
 # Set the path.
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
@@ -22,22 +22,14 @@ NLS_DOMAIN="rc-scripts"
 
 . /etc/rc.d/init.d/functions
 
-case "$1" in
-   stop*)
-       exit 0
-       ;;
-   start*)
-# Kill all processes.
-       [ "${BASH+bash}" = bash ] && enable kill
-
-       run_cmd "Sending all processes the TERM signal" killall5 -15
-       sleep 5
-       run_cmd "Sending all processes the KILL signal" killall5 -9
+if [ "$1" != "start" ] ; then
+    exit 0
+fi
 
-       rm -f /var/lock/subsys/*
+rm -f /var/lock/subsys/*
 
-       # this looks nices
-       [ -x /usr/bin/clear ] && /usr/bin/clear
+# this looks nices
+[ -x /usr/bin/clear ] && /usr/bin/clear
 
 # make sure modprobe is working
 if [ -f /proc/sys/kernel/modprobe ]; then
@@ -57,11 +49,9 @@ for i in /etc/rc.d/rc1.d/S[0-9][0-9]*; do
        $i start
 done
 
-       # Now go to the single user level.
-       show "Telling INIT to go to single user mode"; ok
-       exec init -t1 S
-       ;;
-esac
+# Now go to the single user level.
+show "Telling INIT to go to single user mode"; ok
+exec init -t1 S
 
 # This must be last line !
 # vi:syntax=sh:tw=78:ts=8:sw=4
This page took 0.052846 seconds and 4 git commands to generate.