[Piuparts-commits] [SCM] piuparts git repository branch, piatti, updated. 0.49-105-gac1319a
Andreas Beckmann
anbe at debian.org
Fri Mar 1 15:32:50 UTC 2013
The following commit has been merged in the piatti branch:
commit 0b5d270a222be0797df9785d09f5b1c519df80fc
Author: Andreas Beckmann <anbe at debian.org>
Date: Sun Feb 10 02:05:43 2013 +0100
detect_slave_problems: get rid of monitor-slave directory
Signed-off-by: Andreas Beckmann <anbe at debian.org>
diff --git a/slave-bin/detect_slave_problems b/slave-bin/detect_slave_problems
index 77adbb8..920b6a4 100755
--- a/slave-bin/detect_slave_problems
+++ b/slave-bin/detect_slave_problems
@@ -60,20 +60,12 @@ fi
get_config_value SLAVEROOT global slave-directory
-get_config_value MASTER global master-directory
get_config_value IDLE_SLEEP global idle-sleep 1800
SCREENLOG=$SLAVEROOT/screenlog.0
-MONITORDIR=$MASTER/monitor-slave
-LOCKFILE="$MONITORDIR/slave-problems"
STATEFILE=$SLAVEROOT/slave-problems
-mkdir -p $MONITORDIR
-cd $MONITORDIR
-chown piupartsm:piuparts $MONITORDIR
-chmod 775 $MONITORDIR
-
# clear the statefile daily and whine again
test $(file_age $STATEFILE) -lt 86000 || rm -f $STATEFILE
@@ -94,13 +86,3 @@ elif [ ! -f $STATEFILE ]; then
} | mail -s "problem with piuparts-slave detected" piupartss
touch $STATEFILE
fi
-
-#
-# cleanup $LOCKFILE once a day to remind daily
-#
-
-HOUR=`date +%H`
-if [ "$HOUR" = "00" ] ; then
- rm -f $LOCKFILE
-fi
-
--
piuparts git repository
More information about the Piuparts-commits
mailing list