72 lines
2.8 KiB
Diff
72 lines
2.8 KiB
Diff
|
diff -uNr torque-2.5.2.ORIG/contrib/init.d/pbs_mom torque-2.5.2/contrib/init.d/pbs_mom
|
||
|
--- torque-2.5.2.ORIG/contrib/init.d/pbs_mom 2010-10-14 23:20:58.500633494 +0200
|
||
|
+++ torque-2.5.2/contrib/init.d/pbs_mom 2010-10-14 23:36:00.369403267 +0200
|
||
|
@@ -51,6 +51,9 @@
|
||
|
case "$1" in
|
||
|
start)
|
||
|
echo -n "Starting TORQUE Mom: "
|
||
|
+ status pbs_mom 2>&1 > /dev/null
|
||
|
+ RET=$?
|
||
|
+ [ $RET -eq 0 ] && echo -n "pbs_mom already running" && success && echo && exit 0
|
||
|
# ulimit -c unlimited # Uncomment this to preserve core files
|
||
|
daemon $PBS_DAEMON $args -d $PBS_HOME
|
||
|
RET=$?
|
||
|
@@ -67,6 +70,9 @@
|
||
|
;;
|
||
|
stop)
|
||
|
echo -n "Shutting down TORQUE Mom: "
|
||
|
+ status pbs_mom 2>&1 > /dev/null
|
||
|
+ RET=$?
|
||
|
+ [ ! $RET -eq 0 ] && echo -n "pbs_mom already stopped" && success && echo && exit 0
|
||
|
kill_pbs_mom
|
||
|
RET=$?
|
||
|
[ $RET -eq 0 ] && success "shutdown" || failure "shutdown"
|
||
|
diff -uNr torque-2.5.2.ORIG/contrib/init.d/pbs_sched torque-2.5.2/contrib/init.d/pbs_sched
|
||
|
--- torque-2.5.2.ORIG/contrib/init.d/pbs_sched 2010-10-14 23:20:58.500633494 +0200
|
||
|
+++ torque-2.5.2/contrib/init.d/pbs_sched 2010-10-14 23:38:04.275381652 +0200
|
||
|
@@ -20,6 +20,10 @@
|
||
|
case "$1" in
|
||
|
start)
|
||
|
echo -n "Starting TORQUE Scheduler: "
|
||
|
+ status pbs_sched 2>&1 > /dev/null
|
||
|
+ RET=$?
|
||
|
+ [ $RET -eq 0 ] && echo -n "pbs_sched already running" && success && echo && exit 0
|
||
|
+
|
||
|
daemon $PBS_DAEMON -d $PBS_HOME
|
||
|
RET=$?
|
||
|
[ $RET -eq 0 ] && touch /var/lock/subsys/pbs_sched
|
||
|
@@ -27,6 +31,9 @@
|
||
|
;;
|
||
|
stop)
|
||
|
echo -n "Shutting down TORQUE Scheduler: "
|
||
|
+ status pbs_sched 2>&1 > /dev/null
|
||
|
+ RET=$?
|
||
|
+ [ ! $RET -eq 0 ] && echo -n "pbs_sched already stopped" && success && echo && exit 0
|
||
|
killproc pbs_sched
|
||
|
RET=$?
|
||
|
rm -f /var/lock/subsys/pbs_sched
|
||
|
diff -uNr torque-2.5.2.ORIG/contrib/init.d/pbs_server torque-2.5.2/contrib/init.d/pbs_server
|
||
|
--- torque-2.5.2.ORIG/contrib/init.d/pbs_server 2010-10-14 23:20:58.499634001 +0200
|
||
|
+++ torque-2.5.2/contrib/init.d/pbs_server 2010-10-14 23:37:06.460197422 +0200
|
||
|
@@ -20,6 +20,10 @@
|
||
|
case "$1" in
|
||
|
start)
|
||
|
echo -n "Starting TORQUE Server: "
|
||
|
+ status pbs_server 2>&1 > /dev/null
|
||
|
+ RET=$?
|
||
|
+ [ $RET -eq 0 ] && echo -n "pbs_server already running" && success && echo && exit 0
|
||
|
+
|
||
|
# ulimit -c unlimited # Uncomment this to preserve core files
|
||
|
if [ -r $PBS_HOME/server_priv/serverdb ]
|
||
|
then
|
||
|
@@ -51,6 +55,9 @@
|
||
|
;;
|
||
|
stop)
|
||
|
echo -n "Shutting down TORQUE Server: "
|
||
|
+ status pbs_server 2>&1 > /dev/null
|
||
|
+ RET=$?
|
||
|
+ [ ! $RET -eq 0 ] && echo -n "pbs_server already stopped" && success && echo && exit 0
|
||
|
killproc pbs_server
|
||
|
RET=$?
|
||
|
rm -f /var/lock/subsys/pbs_server
|