From ff485fa7362e67b8ce63bb11c75b85dd81b6af52 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Tue, 14 Apr 2009 18:38:01 +0100 Subject: [PATCH] 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 --- modules/monit/files/puppet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2