capture the perl pid using ps instead of $! (forking for daemonization)
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 5 Jul 2007 00:02:42 +0000 (00:02 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 5 Jul 2007 00:02:42 +0000 (00:02 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@994 9efc2488-bf62-4759-914b-345cdb29e865

bin/osrf_ctl.sh

index 374385d..c96eb4c 100755 (executable)
@@ -119,9 +119,9 @@ function stop_router {
 function start_perl {
        do_action "start" $PID_OSRF_PERL "OpenSRF Perl";
        perl -MOpenSRF::System="$OPT_CONFIG" -e 'OpenSRF::System->bootstrap()' & 
-       pid=$!;
+       pid=$(ps ax | grep "OpenSRF System" | grep -v grep | grep -v "System-C"| awk '{print $1}')
        echo $pid > $PID_OSRF_PERL;
-       sleep 5;
+       sleep 3;
        return 0;
 }