From: Stephen Gran Date: Tue, 14 Apr 2009 17:38:01 +0000 (+0100) Subject: Try to get the timing the same, but leave a lot of room in the X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;ds=sidebyside;h=ff485fa7362e67b8ce63bb11c75b85dd81b6af52;p=dsa-puppet.git Try to get the timing the same, but leave a lot of room in the 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 --- diff --git a/modules/monit/files/puppet b/modules/monit/files/puppet index 39a5626f..789c6787 100644 --- a/modules/monit/files/puppet +++ b/modules/monit/files/puppet @@ -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