# Process the accepted queue
function accepted() {
log "Processing queue/accepted"
- cd "$accepted"
- rm -f REPORT
- dak process-accepted -pa *.changes > REPORT
+ rm -f "$accepted/REPORT"
+ dak process-accepted -pa -d "$accepted" > "$accepted/REPORT"
cat REPORT | mail -s "Install for $(date +"%D - %R")" ftpmaster@ftp-master.debian.org
chgrp debadmin REPORT
chmod 664 REPORT
# it has to cd first!
cd ${configdir}
+ if [ -f "${LOCK_STOP}" ]; then
+ log "${LOCK_STOP} exists, exiting immediately"
+ exit 42
+ fi
+
if [ "${ERR}" = "false" ]; then
set +e
fi
touch "${stagedir}/${FUNC}"
+ if [ -f "${LOCK_STOP}" ]; then
+ log "${LOCK_STOP} exists, exiting immediately"
+ exit 42
+ fi
+
if [ -n "${TIME}" ]; then
ts "${TIME}"
fi
# from our point of view
LOCK_BRITNEY="$lockdir/britney.lock"
+# If this file exists we exit immediately after the currently running
+# function is done
+LOCK_STOP="$lockdir/archive.stop"
+
lockfile -l 3600 "${LOCK_DAILY}"
trap cleanup EXIT ERR TERM HUP INT QUIT