From: Julien Cristau Date: Sun, 11 Oct 2015 15:17:25 +0000 (+0200) Subject: use full path to /usr/bin/service in monit config X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=7cd6565a59e6fdd8230546197b7b1d9786b8890f;p=mirror%2Fdsa-puppet.git use full path to /usr/bin/service in monit config /etc/monit/monit.d/01puppet:9: Warning: Program does not exist: 'service' Signed-off-by: Julien Cristau --- diff --git a/modules/monit/files/puppet b/modules/monit/files/puppet index 736808367..0ce5c25e3 100644 --- a/modules/monit/files/puppet +++ b/modules/monit/files/puppet @@ -6,4 +6,4 @@ check file cronalive with path /var/cache/dsa/cron.alive # a cycle is 5 minutes, 24 cycles is thus 2 hours - if timestamp > 120 minutes for 24 cycles then exec "service cron restart" + if timestamp > 120 minutes for 24 cycles then exec "/usr/sbin/service cron restart"