]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- ugly hack to still do killall as pgrep is on /usr, or rather drop pgrep as it never...
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 20 Jul 2010 08:42:46 +0000 (08:42 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 20 Jul 2010 08:42:46 +0000 (08:42 +0000)
svn-id: @11684

rc.d/rc.shutdown

index 822b38f1c5a3a02a4993e9957e1bb50ffd9e01a2..a7efc8b9a7a4c218b38d53efed4ca8b922d44504 100755 (executable)
@@ -38,13 +38,14 @@ 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
+# XXX: pgrep is on /usr!
 pids=$(pgrep -g 0 -l -v | grep -v '^1 ')
-if [ -n "$pids" ]; then
+if [ -n "$pids" ] || [ ! -x /usr/bin/pgrep ]; 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
+if [ -n "$pids" ] || [ ! -x /usr/bin/pgrep ]; then
        sleep 5
        run_cmd "Sending all processes the KILL signal" killall5 -9
 fi
This page took 0.045222 seconds and 4 git commands to generate.