[pkg-horde] [SCM] Debian Horde Packages repository: kronolith2 package branch, debian-sid, updated. debian/2.3.3+debian0-1-8-g098529a

Gregory Colpart gcolpart at ioakim2.evolix.net
Sat Jul 10 21:50:33 UTC 2010


The following commit has been merged in the debian-sid branch:
commit 098529aacd8ad42eaacfbac15f30fcc33947312a
Author: Gregory Colpart <gcolpart at ioakim2.evolix.net>
Date:   Sat Jul 10 23:36:55 2010 +0200

    Add lock file for cron job

diff --git a/debian/changelog b/debian/changelog
index 05e5ce5..ad898d3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ kronolith2 (2.3.4+debian0-1) unstable; urgency=low
 
   * New upstream release. 
   * Update to standards version 3.9.0, no further required changes. 
+  * Add a lock file to cron job avoid fork-bomb on slower computers. 
+    (Closes: #548518) 
 
  -- Gregory Colpart <reg at debian.org>  Sat, 10 Jul 2010 23:31:17 +0200
 
diff --git a/debian/cron.d b/debian/cron.d
index a3796f4..98eaa17 100644
--- a/debian/cron.d
+++ b/debian/cron.d
@@ -1,4 +1,4 @@
 #
 # Regular cron jobs for the kronolith2 package
 #
-* * * * * www-data test -x /usr/bin/php && /usr/bin/php -q /usr/share/horde3/kronolith/scripts/reminders.php > /dev/null 2>&1
+* * * * * www-data test -x /usr/bin/php && ! test -f /tmp/kronolith-cron.lock && touch /tmp/kronolith-cron.lock && /usr/bin/php -q /usr/share/horde3/kronolith/scripts/reminders.php > /dev/null 2>&1 && rm -f /tmp/kronolith-cron.lock

-- 
Debian Horde Packages repository: kronolith2 package



More information about the pkg-horde-hackers mailing list