4 # Simple rc script for controlling the system
5 # Only works on linux because of 'ps' syntax
9 echo "usage: system.sh [start|stop|restart|status] <boostrap_config (on start and restart)>";
19 perl -MOpenSRF::System="$2" -e 'OpenSRF::System->bootstrap()' &
25 PID=$(ps ax | grep "[0-9] System$" | awk '{print $1}');
27 echo "OpenSRF System is not running";
30 echo "Killing System...$PID";
35 PID=$(ps ax | grep "[0-9] System$" | awk '{print $1}');
37 echo "OpenSRF System is not running";
40 echo "OpenSRF System is running";