]> git.deb.at Git - deb/packages.git/commitdiff
of course we should only delete the lockfile after we finished but
authorFrank Lichtenheld <frank@lichtenheld.de>
Mon, 20 Feb 2006 02:27:18 +0000 (02:27 +0000)
committerFrank Lichtenheld <frank@lichtenheld.de>
Mon, 20 Feb 2006 02:27:18 +0000 (02:27 +0000)
not if we canceled the job because we couldn't get the lock...

bin/daily

index e4325939328f5cc1139a2ce7c995d553f03ff507..f9e8853f77e64f1511c73c170464190a8268e464 100755 (executable)
--- 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