ignore ssh errors with rietz AKA bugs, but warn if they are there for more than three days.
Signed-off-by: Joerg Jaspert <joerg@debian.org>
+2008-11-10 Joerg Jaspert <joerg@debian.org>
+
+ * config/debian/cron.unchecked: how about us ignoring bugs.d.o
+ down? It's not like it is time critical or something to transfer
+ this stuff, it doesn't hurt to have it there a bit later...
+
2008-11-08 Joerg Jaspert <joerg@debian.org>
* config/debian/cron.hourly: Create new tracefile format.
echo "--" >> $report
# sync with debbugs
- rsync -aq --remove-source-files $queuedir/bts_version_track/ bugs-sync:/org/bugs.debian.org/versions/queue/ftp-master/
+ rsync -aq -e "ssh -o Batchmode=yes -o ConnectTimeout=30 -o SetupTimeout=30" --remove-source-files $queuedir/bts_version_track/ bugs-sync:/org/bugs.debian.org/versions/queue/ftp-master/ 2>/dev/null && touch $lockdir/synced_bts_version || true
+
+ NOW=$(date +%s)
+ TSTAMP=$(stat -c %Y $lockdir/synced_bts_version)
+ DIFF=$(( NOW - TSTAMP ))
+ if [ $DIFF -ge 259200 ]; then
+ echo "Kids, you tried your best and you failed miserably. The lesson is, never try. (Homer Simpson)"
+ fi
if lockfile -r3 $NOTICE; then
LOCKDAILY="YES"