[torque] rhbz#528060

stevetraylen stevetraylen at fedoraproject.org
Thu Oct 14 20:04:46 UTC 2010


commit 36a82535ca3879cb0d45a66215d27e11c807cd57
Author: Steve Traylen <steve.traylen at cern.ch>
Date:   Thu Oct 14 21:59:29 2010 +0200

    rhbz#528060

 torque-cond-touch.patch |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 45 insertions(+), 0 deletions(-)
---
diff --git a/torque-cond-touch.patch b/torque-cond-touch.patch
new file mode 100644
index 0000000..9fb0834
--- /dev/null
+++ b/torque-cond-touch.patch
@@ -0,0 +1,45 @@
+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 21:47:05.035383236 +0200
++++ torque-2.5.2/contrib/init.d/pbs_mom	2010-10-14 21:49:38.433427973 +0200
+@@ -54,7 +54,7 @@
+                 # ulimit -c unlimited  # Uncomment this to preserve core files
+ 		daemon $PBS_DAEMON $args -d $PBS_HOME
+ 		RET=$?
+-		touch /var/lock/subsys/pbs_mom
++		[ $RET -eq 0 ] &&  touch /var/lock/subsys/pbs_mom
+    		echo
+ 		;;
+ 	purge)
+@@ -62,7 +62,7 @@
+ 		echo -n "Starting TORQUE Mom with purge: "
+ 		daemon $PBS_DAEMON -r
+ 		RET=$?
+-		touch /var/lock/subsys/pbs_mom
++		[ $RET -eq 0 ] && touch /var/lock/subsys/pbs_mom
+    		echo
+ 		;;
+ 	stop)
+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 21:47:05.034384022 +0200
++++ torque-2.5.2/contrib/init.d/pbs_sched	2010-10-14 21:50:32.826542794 +0200
+@@ -22,7 +22,7 @@
+ 		echo -n "Starting TORQUE Scheduler: "
+ 		daemon $PBS_DAEMON -d $PBS_HOME
+ 		RET=$?
+-		touch /var/lock/subsys/pbs_sched
++		[ $RET -eq 0 ] && touch /var/lock/subsys/pbs_sched
+ 		echo
+ 		;;
+ 	stop)
+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 21:47:05.034384022 +0200
++++ torque-2.5.2/contrib/init.d/pbs_server	2010-10-14 21:50:09.310577353 +0200
+@@ -28,7 +28,7 @@
+ 			daemon $PBS_DAEMON -t create -d $PBS_HOME
+ 		fi
+ 		RET=$?
+-		touch /var/lock/subsys/pbs_server
++		[ $RET -eq 0 ] && touch /var/lock/subsys/pbs_server
+ 		echo
+ 		;;
+ 	stop)


More information about the scm-commits mailing list