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