SVN: rc-scripts/branches/busybox/rc.d/rc.shutdown

baggins baggins at pld-linux.org
Thu Mar 26 14:42:46 CET 2009


Author: baggins
Date: Thu Mar 26 14:42:46 2009
New Revision: 10255

Modified:
   rc-scripts/branches/busybox/rc.d/rc.shutdown
Log:
- kill pgrep fun, it's totally useless (ever saw [k-threads]?)


Modified: rc-scripts/branches/busybox/rc.d/rc.shutdown
==============================================================================
--- rc-scripts/branches/busybox/rc.d/rc.shutdown	(original)
+++ rc-scripts/branches/busybox/rc.d/rc.shutdown	Thu Mar 26 14:42:46 2009
@@ -33,19 +33,9 @@
 	killall -q -QUIT blogd
 fi
 
-# check for other processes.
-# there could be none if all services were terminated properly
-# pgrep -g 0 requires procps >= 3.2.6-1.1
-pids=$(pgrep -g 0 -l -v | grep -v '^1 ')
-if [ -n "$pids" ]; then
-	run_cmd "Sending all processes the TERM signal" killall5 -15
-fi
-
-pids=$(pgrep -g 0 -l -v | grep -v '^1 ')
-if [ -n "$pids" ]; then
-	sleep 5
-	run_cmd "Sending all processes the KILL signal" killall5 -9
-fi
+run_cmd "Sending all processes the TERM signal" killall5 -15
+sleep 3
+run_cmd "Sending all processes the KILL signal" killall5 -9
 
 # Write to wtmp file before unmounting /var
 halt -w


More information about the pld-cvs-commit mailing list