3 # pbs_mom This script will start and stop the PBS daemons
6 # description: PBS is a batch versitle batch system for SMPs and clusters
9 # Source the library functions
10 . /etc/rc.d/init.d/functions
12 # let see how we were called
15 if [ ! -f /var/lock/subsys/pbs_mom ]; then
16 msg_starting "pbs_mom"
17 daemon /usr/sbin/pbs_mom
19 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pbs_mom
21 msg_already_running "pbs_mom"
25 if [ -f /var/lock/subsys/pbs_mom ]; then
26 msg_stopping "pbs_mom"
28 rm -rf /var/lock/subsys/pbs_mom >/dev/null 2>&1
30 msg_not_running pbs_mom
42 msg_usage "$0 {start|stop|status|restart|reload|force-reload}"