[Pkg-ganeti-devel] [PATCH] Fix cron job for the watcher

Iustin Pop iusty at k1024.org
Wed Feb 20 05:34:33 UTC 2008


This is a small patch that replaces the upstream-provided cron job with
our own custom version that:
  - checks for the executable before running it
  - has the correct paths to the watcher

iustin

Index: debian/changelog
===================================================================
--- debian/changelog	(revision 36)
+++ debian/changelog	(working copy)
@@ -1,3 +1,9 @@
+ganeti (1.2.2-3) unstable; urgency=low
+
+  * Fix 'crontab should check for executable presence' (Closes: #466611)
+
+ -- Iustin Pop <iusty at k1024.org>  Wed, 20 Feb 2008 06:32:54 +0100
+
 ganeti (1.2.2-2) unstable; urgency=medium
 
   * Move mdadm from depends to recommends: it's only useful with drbd0.7
Index: debian/ganeti.cron.d
===================================================================
--- debian/ganeti.cron.d	(revision 0)
+++ debian/ganeti.cron.d	(revision 0)
@@ -0,0 +1,3 @@
+PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
+# restart failed instances
+*/5 * * * * root [ -x /usr/sbin/ganeti-watcher ] && /usr/sbin/ganeti-watcher
Index: debian/rules
===================================================================
--- debian/rules	(revision 36)
+++ debian/rules	(working copy)
@@ -16,10 +16,8 @@
 
 clean::
 	rm -f debian/ganeti.init
-	rm -f debian/ganeti.cron.d
 
 build/ganeti::
-	cp doc/examples/ganeti.cron debian/ganeti.cron.d
 	cp doc/examples/ganeti.initd debian/ganeti.init
 
 binary-install/ganeti::



More information about the Pkg-ganeti-devel mailing list