From: Torsten Werner Date: Fri, 7 Jan 2011 19:32:58 +0000 (+0100) Subject: cron.unchecked: improve error message if locking fails X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bdef5ce8bafdd5d16cfa7652aa464e23ba598b6;p=dak cron.unchecked: improve error message if locking fails Signed-off-by: Torsten Werner --- diff --git a/config/debian/cron.unchecked b/config/debian/cron.unchecked index e4bfe544..83372f98 100755 --- a/config/debian/cron.unchecked +++ b/config/debian/cron.unchecked @@ -94,7 +94,10 @@ export LC_ALL=C #rm -f "$LOCK_NEW" # only run one cron.unchecked -lockfile -r8 $LOCKFILE || exit 0 +if ! lockfile -r8 $LOCKFILE; then + echo "aborting cron.unchecked because $LOCKFILE has already been locked" + exit 0 +fi trap cleanup 0 do_newstage