From ed7c40ad14b33c965953a325967cf98b0504fb41 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Mon, 20 Feb 2006 02:27:18 +0000 Subject: [PATCH] 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... --- bin/daily | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2