[Opensrf-commits] r1264 - trunk/bin

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Mar 7 18:06:30 EST 2008


Author: erickson
Date: 2008-03-07 17:33:48 -0500 (Fri, 07 Mar 2008)
New Revision: 1264

Modified:
   trunk/bin/osrf_ctl.sh
Log:
made the pid file reading smarter.  removed the nasty killalls since they are no longer necessary

Modified: trunk/bin/osrf_ctl.sh
===================================================================
--- trunk/bin/osrf_ctl.sh	2008-03-07 22:32:42 UTC (rev 1263)
+++ trunk/bin/osrf_ctl.sh	2008-03-07 22:33:48 UTC (rev 1264)
@@ -115,11 +115,10 @@
 			return 0;
 		fi;
 
-		pid=$(cat $pidfile);
-		echo "Stopping $item : $pid";
-		kill -s INT $pid 2> /dev/null;
-        sleep 1;
-		kill -9 $pid 2> /dev/null;
+        while read pid; do
+            echo "Stopping process $pid..."
+            kill -s INT $pid
+        done < $pidfile;
 		rm -f $pidfile;
 
 	fi;
@@ -176,7 +175,6 @@
 
 function stop_c {
 	do_action "stop" $PID_OSRF_C "OpenSRF C";
-	killall -9 opensrf-c  # hack for now to force kill all C services
 	sleep 1;
 	return 0;
 }



More information about the opensrf-commits mailing list