]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/cron.hourly
Move ddaccess sync out of the locked area and background it
[dak.git] / config / debian / cron.hourly
index a037ee92b130e728b3a2a7e391d6c633c2fbb828..d2451b8a019b6a7854a584d46120c8dd84c00947 100755 (executable)
@@ -2,6 +2,10 @@
 #
 # Executed hourly via cron, out of dak's crontab.
 
+# Only one of me should ever run.
+[  "${FLOCKER}"  != "$0" ] && exec env FLOCKER="$0" flock -E 0 -en "$0" "$0"
+"$@" || :
+
 set -e
 set -o pipefail
 set -u
@@ -33,7 +37,7 @@ if lockfile -r16 $LOCKFILE 2> /dev/null; then
 fi
 
 dak queue-report -n > $webdir/new.html
-dak queue-report -n -d backports-new > ${webdir}/backports-new.html
+dak queue-report -n -d backports-new,backports-policy > ${webdir}/backports-new.html
 dak queue-report -8 -d new,byhand,stable-new,oldstable-new,backports-new -r $webdir/stat
 sudo -u dak-unpriv dak show-deferred -r $webdir/stat > ${webdir}/deferred.html
 dak graph -n new,byhand,stable-new,oldstable-new,deferred -r $webdir/stat -i $webdir/stat -x $scriptsdir/rrd-release-freeze-dates
@@ -50,7 +54,7 @@ $base/dak/tools/removals.pl $configdir/removalsrss.rc > $webdir/rss/removals.rss
 # cd $masterdir
 # timeout -k 180 120  /usr/bin/epydoc -q --html --graph all --css blue -n DAK -o $webdir/epydoc --include-log --graph all --show-imports $masterdir/dak/ $masterdir/dakweb/ || true
 
-# Tell ries to sync its tree
+# Tell the public mirror to sync its tree
 ${scriptsdir}/sync-dd dd-sync dd-sync1 dd-sync2 sync
 
 $scriptsdir/generate-d-i