dmlb2000 pushed to torque (el5). "rhbz#528060"
notifications at fedoraproject.org
notifications at fedoraproject.org
Wed Apr 8 06:01:38 UTC 2015
>From 36a82535ca3879cb0d45a66215d27e11c807cd57 Mon Sep 17 00:00:00 2001
From: Steve Traylen <steve.traylen at cern.ch>
Date: Thu, 14 Oct 2010 21:59:29 +0200
Subject: rhbz#528060
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)
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/torque.git/commit/?h=el5&id=36a82535ca3879cb0d45a66215d27e11c807cd57
More information about the scm-commits
mailing list