[Opensrf-commits] r1711 - trunk/bin (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jun 3 09:26:31 EDT 2009


Author: erickson
Date: 2009-06-03 09:26:30 -0400 (Wed, 03 Jun 2009)
New Revision: 1711

Modified:
   trunk/bin/osrf_ctl.sh.in
Log:
don't try to 'kill' an empty pid / prevents warnings

Modified: trunk/bin/osrf_ctl.sh.in
===================================================================
--- trunk/bin/osrf_ctl.sh.in	2009-06-01 20:21:06 UTC (rev 1710)
+++ trunk/bin/osrf_ctl.sh.in	2009-06-03 13:26:30 UTC (rev 1711)
@@ -120,8 +120,10 @@
 		fi;
 
         while read pid; do
-            echo "Stopping $item process $pid..."
-            kill -s INT $pid
+            if [ -n "$pid" ]; then
+                echo "Stopping $item process $pid..."
+                kill -s INT $pid
+            fi;
         done < $pidfile;
 		rm -f $pidfile;
 



More information about the opensrf-commits mailing list