]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
restart cron from monit using service
authorHelmut Grohne <helmut@subdivi.de>
Fri, 7 Nov 2014 14:29:10 +0000 (15:29 +0100)
committerHéctor Orón Martínez <zumbi@debian.org>
Fri, 7 Nov 2014 15:39:54 +0000 (16:39 +0100)
Getting rid of explicit /etc/init.d/ invocations as those may disappear.

Signed-off-by: Helmut Grohne <helmut@subdivi.de>
modules/monit/files/puppet

index b08ec0c7e518be4d0498617fa90410036bbe06c2..7368083677c5707f5763e369349f437da0a93f96 100644 (file)
@@ -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 "/etc/init.d/cron restart"
+    if timestamp > 120 minutes for 24 cycles then exec "service cron restart"