From: Frank Lichtenheld Date: Mon, 20 Feb 2006 02:27:18 +0000 (+0000) Subject: of course we should only delete the lockfile after we finished but X-Git-Tag: switch-to-templates~119 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=ed7c40ad14b33c965953a325967cf98b0504fb41;p=deb%2Fpackages.git of course we should only delete the lockfile after we finished but not if we canceled the job because we couldn't get the lock... --- diff --git a/bin/daily b/bin/daily index e432593..f9e8853 100755 --- a/bin/daily +++ b/bin/daily @@ -37,9 +37,9 @@ date > $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