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

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jun 11 09:10:37 EDT 2009


Author: erickson
Date: 2009-06-11 09:10:36 -0400 (Thu, 11 Jun 2009)
New Revision: 1720

Modified:
   trunk/bin/osrf_ctl.sh.in
Log:
until we make the router / C processes write their own PID file, put a short sleep in after startup to give each time to show up in the 'ps' output.  this should help prevent lingering router processes after service stop

Modified: trunk/bin/osrf_ctl.sh.in
===================================================================
--- trunk/bin/osrf_ctl.sh.in	2009-06-11 12:49:43 UTC (rev 1719)
+++ trunk/bin/osrf_ctl.sh.in	2009-06-11 13:10:36 UTC (rev 1720)
@@ -141,6 +141,7 @@
 function start_router {
 	do_action "start" $PID_ROUTER "OpenSRF Router";
 	opensrf_router $OPT_CONFIG routers
+    sleep 2; # give the router procs time to fork and appear in ps
 	pid=$(ps ax | grep "OpenSRF Router" | grep -v grep | awk '{print $1}')
 	echo $pid > $PID_ROUTER;
 	return 0;
@@ -173,6 +174,7 @@
 
 	do_action "start" $PID_OSRF_C "OpenSRF C (host=$host)";
 	opensrf-c $host $OPT_CONFIG opensrf;
+    sleep 1; # give the main C proc time to appear in ps
 	pid=$(ps ax | grep "OpenSRF System-C" | grep -v grep | awk '{print $1}')
 	echo $pid > "$PID_OSRF_C";
 	return 0;



More information about the opensrf-commits mailing list