]> git.pld-linux.org Git - packages/OpenPBS.git/blob - pbs_sched
- dropped pre-cvs changelog
[packages/OpenPBS.git] / pbs_sched
1 #!/bin/sh 
2 #
3 # pbs_sched     This script will start and stop the PBS daemons
4 #
5 # chkconfig: 345 85 85
6 # description: PBS is a batch versitle batch system for SMPs and clusters
7 #
8
9 # Source the library functions
10 . /etc/rc.d/init.d/functions
11
12 # let see how we were called
13 case "$1" in
14   start) 
15         if [ ! -f /var/lock/subsys/pbs_sched ]; then
16                 msg_starting "pbs_sched"
17                 daemon /usr/sbin/pbs_sched
18                 RETVAL=$?
19                 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pbs_sched
20         else
21                 msg_already_running "pbs_sched"
22         fi
23         ;;
24   stop)
25         if [ -f /var/lock/subsys/pbs_sched ]; then 
26                 msg_stopping "pbs_sched"
27                 killproc pbs_sched
28                 rm -rf /var/lock/subsys/pbs_sched >/dev/null 2>&1
29         else
30                 msg_not_running pbs_sched
31                 exit 1
32         fi
33   ;;
34   status)
35         status pbs_sched
36   ;;
37   restart)
38         $0 stop
39         $0 start
40   ;;
41   *)
42         msg_usage "$0 {start|stop|status|restart|reload|force-reload}"
43         exit 1
44 esac
45 exit $RETVAL
This page took 0.075115 seconds and 3 git commands to generate.