Last change
on this file since 44 was
44,
checked in by dennis, 14 years ago
|
Now torque_2_deb creates 8 packages just like the torque in the debian repository.
This has been done to fix a depedency problem of libopenmpi1.3 when we used our
previous build of torque.
|
File size:
1.6 KB
|
Line | |
---|
1 | #! /bin/sh |
---|
2 | |
---|
3 | ### BEGIN INIT INFO |
---|
4 | # Provides: torque-mom |
---|
5 | # Required-Start: $remote_fs $local_fs $named $network |
---|
6 | # Required-Stop: $remote_fs $local_fs $named $network |
---|
7 | # Default-Start: 2 3 4 5 |
---|
8 | # Default-Stop: 0 1 6 |
---|
9 | # Short-Description: Start and stop the PBS Mom |
---|
10 | # Description: PBS is a versatile batch system for SMPs and clusters. |
---|
11 | # This script controls the mom process. |
---|
12 | ### END INIT INFO |
---|
13 | |
---|
14 | PATH=/usr/sbin:/usr/bin:/sbin:/bin |
---|
15 | DAEMON=/usr/sbin/pbs_mom |
---|
16 | NAME=torque-mom |
---|
17 | DESC="Torque Mom" |
---|
18 | PIDFILE=/var/spool/torque/mom_priv/mom.lock |
---|
19 | |
---|
20 | test -x $DAEMON || exit 0 |
---|
21 | |
---|
22 | # Include defaults if available |
---|
23 | if [ -f /etc/default/$NAME ] ; then |
---|
24 | . /etc/default/$NAME |
---|
25 | fi |
---|
26 | |
---|
27 | # Load lsb functions |
---|
28 | . /lib/lsb/init-functions |
---|
29 | |
---|
30 | case "$1" in |
---|
31 | start) |
---|
32 | log_daemon_msg "Starting $DESC" "$NAME" |
---|
33 | start-stop-daemon --start --quiet --pidfile $PIDFILE \ |
---|
34 | --exec $DAEMON -- $DAEMON_OPTS |
---|
35 | log_end_msg $? |
---|
36 | ;; |
---|
37 | stop) |
---|
38 | log_daemon_msg "Stopping $DESC" "$NAME" |
---|
39 | start-stop-daemon --stop --quiet --pidfile $PIDFILE \ |
---|
40 | --exec $DAEMON |
---|
41 | log_end_msg $? |
---|
42 | ;; |
---|
43 | reload|force-reload) |
---|
44 | log_daemon_msg "Reoading $DESC configuration files" "$NAME" |
---|
45 | start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE \ |
---|
46 | --exec $DAEMON |
---|
47 | log_end_msg $? |
---|
48 | ;; |
---|
49 | restart) |
---|
50 | log_daemon_msg "Restarting $DESC" "$NAME" |
---|
51 | start-stop-daemon --stop --quiet --pidfile $PIDFILE \ |
---|
52 | --exec $DAEMON |
---|
53 | sleep 1 |
---|
54 | start-stop-daemon --start --quiet --pidfile $PIDFILE \ |
---|
55 | --exec $DAEMON -- $DAEMON_OPTS |
---|
56 | log_end_msg $? |
---|
57 | ;; |
---|
58 | *) |
---|
59 | N=/etc/init.d/$NAME |
---|
60 | log_action_msg "Usage: /etc/init.d/torque-mom {start|stop|restart|reload|force-reload}" |
---|
61 | exit 2 |
---|
62 | ;; |
---|
63 | esac |
---|
64 | |
---|
65 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.