[Piuparts-commits] rev 748 - piatti/home/piupartsm/bin

Holger Levsen holger at alioth.debian.org
Sat Nov 13 12:26:48 UTC 2010


Author: holger
Date: 2010-11-13 12:26:44 +0000 (Sat, 13 Nov 2010)
New Revision: 748

Modified:
   piatti/home/piupartsm/bin/detect_slave_problems
Log:
adjust code to match comment

Modified: piatti/home/piupartsm/bin/detect_slave_problems
===================================================================
--- piatti/home/piupartsm/bin/detect_slave_problems	2010-11-13 01:20:32 UTC (rev 747)
+++ piatti/home/piupartsm/bin/detect_slave_problems	2010-11-13 12:26:44 UTC (rev 748)
@@ -53,7 +53,7 @@
 difference=$(( $unixtime - $stamptime ))
 
 # dont complain, if already complained and screenlog is younger than 15 min (=900 sec) 
-if [ ! -f $LOCKFILE ] || [ ${difference} -ge 900 ] ; then
+if [ ! -f $LOCKFILE ] && [ ${difference} -ge 900 ] ; then
 	{
 		echo "Either piuparts-slave hangs or is not running at all or wasn't started with ~piupartss/bin/slave_run - please investigate and take appropriate measures!"
 		echo




More information about the Piuparts-commits mailing list