From: erickson Date: Thu, 11 Jun 2009 13:12:13 +0000 (+0000) Subject: until we make the router / C processes write their own PID file, put a short sleep... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7f51965c610f22105434285888b5e9474bf5dbfe;p=OpenSRF.git 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/branches/rel_1_0@1721 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/bin/osrf_ctl.sh b/bin/osrf_ctl.sh index 5584fdf..635a9c9 100755 --- a/bin/osrf_ctl.sh +++ b/bin/osrf_ctl.sh @@ -149,6 +149,7 @@ function do_action { 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 @@ function start_c { 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;