From 65f06838cfece607935dd1bd7f7cd94ad83fa6e6 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Tue, 14 Apr 2009 08:49:08 +0100 Subject: [PATCH] Hopefully this doesn't cause 4 puppet processes to run simultaneously everywhere Signed-off-by: Stephen Gran --- modules/monit/files/puppet | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/monit/files/puppet b/modules/monit/files/puppet index 37c728b28..39a5626f5 100644 --- a/modules/monit/files/puppet +++ b/modules/monit/files/puppet @@ -9,3 +9,8 @@ check process puppetd with pidfile /var/run/puppet/puppetd.pid if cpu > 60% for 5 cycles then restart if 5 restarts within 5 cycles then timeout +check file puppetstate + with path /var/lib/puppet/state/state.yaml + if timestamp > 1 hour then exec "/etc/init.d/puppet stop" + depends on puppetd + -- 2.20.1