From: Stephen Gran Date: Tue, 14 Apr 2009 07:49:08 +0000 (+0100) Subject: Hopefully this doesn't cause 4 puppet processes to run simultaneously X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=65f06838cfece607935dd1bd7f7cd94ad83fa6e6 Hopefully this doesn't cause 4 puppet processes to run simultaneously everywhere Signed-off-by: Stephen Gran --- diff --git a/modules/monit/files/puppet b/modules/monit/files/puppet index 37c728b2..39a5626f 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 +