X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.hourly;h=ccfbe38c25c656527bb0a9d4306f578ab4cf6df0;hb=f694e88353ff776f325011ca962f1be8c2e718f1;hp=30e81b59e0d8a20af82871e1ed56117272133f7b;hpb=e91ef200b8c56134796099d685385f3dfd704859;p=dak.git diff --git a/config/debian/cron.hourly b/config/debian/cron.hourly index 30e81b59..ccfbe38c 100755 --- a/config/debian/cron.hourly +++ b/config/debian/cron.hourly @@ -12,7 +12,13 @@ dak import-users-from-passwd dak queue-report -n > $webdir/new.html dak queue-report -8 -d new,byhand,proposedupdates,oldproposedupdates dak show-deferred > ${webdir}/deferred.html -dak show-new > /dev/null + +# 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 cd $webdir cat removals-20*.txt > removals-full.txt