[Piuparts-commits] rev 783 - piatti/home/piupartsm/bin
Holger Levsen
holger at alioth.debian.org
Mon Nov 15 23:35:32 UTC 2010
Author: holger
Date: 2010-11-15 23:35:31 +0000 (Mon, 15 Nov 2010)
New Revision: 783
Modified:
piatti/home/piupartsm/bin/detect_slave_problems
Log:
only alarm if slave log hasnt changed for more than 31min, the slave is allowed to sleep 30min once in a while
Modified: piatti/home/piupartsm/bin/detect_slave_problems
===================================================================
--- piatti/home/piupartsm/bin/detect_slave_problems 2010-11-15 22:49:48 UTC (rev 782)
+++ piatti/home/piupartsm/bin/detect_slave_problems 2010-11-15 23:35:31 UTC (rev 783)
@@ -52,8 +52,9 @@
unixtime=$(date +%s)
difference=$(( $unixtime - $stamptime ))
-# dont complain, if already complained and screenlog is younger than 15 min (=900 sec)
-if [ ! -f $LOCKFILE ] && [ ${difference} -ge 900 ] ; then
+# dont complain, if already complained and screenlog is younger than 31 min (=1800 sec) - the slave likes to sleep that long
+# FIXME: parse config file for duration...
+if [ ! -f $LOCKFILE ] && [ ${difference} -ge 1860 ] ; 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