]> gitweb.fluxo.info Git - puppet-syslog-ng.git/commitdiff
Custom restart command
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 26 Oct 2013 13:30:34 +0000 (11:30 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 26 Oct 2013 13:30:34 +0000 (11:30 -0200)
manifests/init.pp

index 740713d76c6ff5ae128fa07c98ec5452db26a5ef..37df49872fb1bc51200168551e2ee90d0314abcf 100644 (file)
@@ -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"],
   }