[Opensrf-commits] r1442 - trunk/bin
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Sep 24 23:27:46 EDT 2008
Author: erickson
Date: 2008-09-24 23:27:44 -0400 (Wed, 24 Sep 2008)
New Revision: 1442
Modified:
trunk/bin/osrf_ctl.sh
Log:
use the new process-specific perl control script
Modified: trunk/bin/osrf_ctl.sh
===================================================================
--- trunk/bin/osrf_ctl.sh 2008-09-25 03:13:23 UTC (rev 1441)
+++ trunk/bin/osrf_ctl.sh 2008-09-25 03:27:44 UTC (rev 1442)
@@ -159,16 +159,15 @@
}
function start_perl {
- do_action "start" $PID_OSRF_PERL "OpenSRF Perl";
- perl -MOpenSRF::System="$OPT_CONFIG" -e 'OpenSRF::System->bootstrap()' &
- sleep 3;
- pid=$(ps ax | grep "OpenSRF System" | grep -v grep | grep -v "System-C"| awk '{print $1}')
- echo $pid > $PID_OSRF_PERL;
+ echo "Starting OpenSRF Perl";
+ opensrf-perl.pl --pid-dir $OPT_PID_DIR \
+ --config $OPT_CONFIG --action start_all --settings-startup-pause 3
return 0;
}
function stop_perl {
- do_action "stop" $PID_OSRF_PERL "OpenSRF Perl";
+ echo "Stopping OpenSRF Perl";
+ opensrf-perl.pl --pid-dir $OPT_PID_DIR --config $OPT_CONFIG --action stop_all
sleep 1;
return 0;
}
More information about the opensrf-commits
mailing list