From edeaae1d753346b3e34f3214f3461ad9dbf3c6b6 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Fri, 7 Nov 2014 15:29:10 +0100 Subject: [PATCH] restart cron from monit using service Getting rid of explicit /etc/init.d/ invocations as those may disappear. Signed-off-by: Helmut Grohne --- modules/monit/files/puppet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monit/files/puppet b/modules/monit/files/puppet index b08ec0c7e..736808367 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 "/etc/init.d/cron restart" + if timestamp > 120 minutes for 24 cycles then exec "service cron restart" -- 2.20.1