]> err.no Git - dak/commitdiff
Re-enable show-new, but don't kill cron.hourly if it dies
authorMark Hymers <mhy@debian.org>
Fri, 1 Apr 2011 11:21:09 +0000 (11:21 +0000)
committerMark Hymers <mhy@debian.org>
Fri, 1 Apr 2011 11:21:09 +0000 (11:21 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
config/debian/cron.hourly

index 21fe3b893cd25d39dcbd22967de0c112f19467e7..dc17a55fd55dba33f7a8fe171e628dca2c54d8b1 100755 (executable)
@@ -15,11 +15,11 @@ dak queue-report -8 -d new,byhand,proposedupdates,oldproposedupdates -r $webdir/
 #dak graph -n new,byhand,proposedupdates,oldproposedupdates,deferred -r $webdir/stat -i $webdir/stat -x $scriptsdir/rrd-release-freeze-dates
 
 # do not run show-new and other stuff in parallel
-#LOCKFILE="$lockdir/unchecked.lock"
-#if lockfile -r16 $LOCKFILE 2> /dev/null; then
-#    dak show-new > /dev/null
-#    rm -f $LOCKFILE
-#fi
+LOCKFILE="$lockdir/unchecked.lock"
+if lockfile -r16 $LOCKFILE 2> /dev/null; then
+    dak show-new > /dev/null || true
+    rm -f $LOCKFILE
+fi
 
 cd $webdir
 cat removals-20*.txt > removals-full.txt