[Opensrf-commits] r1721 - branches/rel_1_0/bin (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jun 11 09:12:14 EDT 2009
Author: erickson
Date: 2009-06-11 09:12:13 -0400 (Thu, 11 Jun 2009)
New Revision: 1721
Modified:
branches/rel_1_0/bin/osrf_ctl.sh
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: branches/rel_1_0/bin/osrf_ctl.sh
===================================================================
--- branches/rel_1_0/bin/osrf_ctl.sh 2009-06-11 13:10:36 UTC (rev 1720)
+++ branches/rel_1_0/bin/osrf_ctl.sh 2009-06-11 13:12:13 UTC (rev 1721)
@@ -149,6 +149,7 @@
function start_router {
do_action "start" $PID_ROUTER "OpenSRF Router";
opensrf_router $OPT_CONFIG routers
+ sleep 2;
pid=$(ps ax | grep "OpenSRF Router" | grep -v grep | awk '{print $1}')
echo $pid > $PID_ROUTER;
return 0;
@@ -181,6 +182,7 @@
do_action "start" $PID_OSRF_C "OpenSRF C (host=$host)";
opensrf-c $host $OPT_CONFIG opensrf;
+ sleep 1;
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