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 b08ec0c..7368083 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"