Signed-off-by: Torsten Werner <twerner@debian.org>
-rm -f "$LOCK_ACCEPTED"
-rm -f "$LOCK_NEW"
-rm -f "${LOCK_DAILY}"
ts "locked part finished"
state "postlock"
ts "locked part finished"
state "postlock"
echo "Archive maintenance timestamp ($1): $(date +%H:%M:%S)"
}
echo "Archive maintenance timestamp ($1): $(date +%H:%M:%S)"
}
+# Remove all locks
+function remove_locks() {
+ rm -f $LOCK_DAILY $LOCK_ACCEPTED $LOCK_NEW
+}
+
+# trap handler for cleaning up on signal / error
- rm -f ${LOCK_DAILY}
- rm -f ${LOCK_ACCEPTED}
}
# If we error out this one is called, *FOLLOWED* by cleanup above
}
# If we error out this one is called, *FOLLOWED* by cleanup above