From fec1ba71a9775c1038ac56f31034d690de87280f Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 11 Jun 2009 13:10:36 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1720 9efc2488-bf62-4759-914b-345cdb29e865 --- bin/osrf_ctl.sh.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/osrf_ctl.sh.in b/bin/osrf_ctl.sh.in index 74a20f2..625b7a3 100755 --- a/bin/osrf_ctl.sh.in +++ b/bin/osrf_ctl.sh.in @@ -141,6 +141,7 @@ function do_action { 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 @@ function start_c { 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; -- 2.11.0