diff options
-rw-r--r-- | manifests/init.pp | 4 |
1 files changed, 4 insertions, 0 deletions
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"], } |