[Opensrf-commits] r994 - trunk/bin

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jul 4 20:06:29 EDT 2007


Author: miker
Date: 2007-07-04 20:02:42 -0400 (Wed, 04 Jul 2007)
New Revision: 994

Modified:
   trunk/bin/osrf_ctl.sh
Log:
capture the perl pid using ps instead of $! (forking for daemonization)

Modified: trunk/bin/osrf_ctl.sh
===================================================================
--- trunk/bin/osrf_ctl.sh	2007-07-04 23:48:21 UTC (rev 993)
+++ trunk/bin/osrf_ctl.sh	2007-07-05 00:02:42 UTC (rev 994)
@@ -119,9 +119,9 @@
 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;
 }
 



More information about the opensrf-commits mailing list