# Should run after the mirror pulse. The mirror tends to finish by
# the ctime of rsync.log.* in ~archvsync.
-topdir=/org/packages.debian.org
+source config.sh
files=$topdir/files
logs=$files/logs
log=$logs/cron.log
if lockfile -600 -r5 "${files}/cron.lock" >> $log 2>&1
then
run-parts --verbose $topdir/cron.d >> $log 2>&1
+ rm -f "${files}/cron.lock"
else
echo "couldn't aquire lock file in due time" >> $log
fi
-rm -f "${files}/cron.lock"
date >> $log