]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Try to get the timing the same, but leave a lot of room in the
authorStephen Gran <steve@lobefin.net>
Tue, 14 Apr 2009 17:38:01 +0000 (18:38 +0100)
committerStephen Gran <steve@lobefin.net>
Tue, 14 Apr 2009 17:38:01 +0000 (18:38 +0100)
calculation for a slow puppetd to update the state file.  What I'm
trying to avoid is a "file check killing puppet and a pid check starting
it" loop because the checks are too close together.
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/monit/files/puppet

index 39a5626f557d8d85bbf396023e885ca7357afc95..789c67875f1715ca508f93a0f836394de01fcd9f 100644 (file)
@@ -11,6 +11,6 @@ check process puppetd with pidfile /var/run/puppet/puppetd.pid
 
 check file puppetstate
     with path /var/lib/puppet/state/state.yaml
-    if timestamp > 1 hour then exec "/etc/init.d/puppet stop"
+    if timestamp > 45 minutes for 3 cycles then exec "/etc/init.d/puppet stop"
     depends on puppetd