From: Silvio Rhatto Date: Sat, 26 Oct 2013 13:30:34 +0000 (-0200) Subject: Custom restart command X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=4d43221d0b3caef9537aab926e0ea5b9c7c73182;p=puppet-syslog-ng.git Custom restart command --- diff --git a/manifests/init.pp b/manifests/init.pp index 740713d..37df498 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -28,6 +28,10 @@ class syslog-ng( ensure => running, hasrestart => true, hasstatus => false, + # Somehow syslog-ng is not returning if it was killed due to lack of + # memory or other issue. A simple start is not enough and we need to + # ensure it's properly stopped first. + restart => '/etc/init.d/syslog-ng stop; /etc/init.d/syslog-ng start', pattern => '/usr/sbin/syslog-ng', require => File["/etc/syslog-ng/syslog-ng.conf"], }