3 # pbs_sched 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_sched ]; then
16 msg_starting "pbs_sched"
17 daemon /usr/sbin/pbs_sched
19 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pbs_sched
21 msg_already_running "pbs_sched"
25 if [ -f /var/lock/subsys/pbs_sched ]; then
26 msg_stopping "pbs_sched"
28 rm -rf /var/lock/subsys/pbs_sched >/dev/null 2>&1
30 msg_not_running pbs_sched
42 msg_usage "$0 {start|stop|status|restart|reload|force-reload}"