From: Stephen Gran <steve@lobefin.net>
Date: Sat, 19 Jun 2010 22:45:47 +0000 (+0000)
Subject: force a restart, rather than reload, of syslog-ng
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9805eb7834e0280332b5f41ca01a24a9c495f670;p=dsa-puppet.git

force a restart, rather than reload, of syslog-ng

Signed-off-by: Stephen Gran <steve@lobefin.net>
---

diff --git a/modules/debian-org/manifests/init.pp b/modules/debian-org/manifests/init.pp
index 5edef0db..032c8bed 100644
--- a/modules/debian-org/manifests/init.pp
+++ b/modules/debian-org/manifests/init.pp
@@ -83,7 +83,7 @@ class debian-org {
         "/etc/syslog-ng/syslog-ng.conf":
             content => template("syslog-ng.conf.erb"),
             require => Package["syslog-ng"],
-            notify  => Exec["syslog-ng reload"],
+            notify  => Exec["syslog-ng restart"],
             ;
         "/etc/logrotate.d/syslog-ng":
             require => Package["syslog-ng"],
@@ -128,7 +128,7 @@ class debian-org {
     }
    
     exec {
-        "syslog-ng reload":
+        "syslog-ng restart":
             path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
             refreshonly => true;
         "dpkg-reconfigure tzdata -pcritical -fnoninteractive":
diff --git a/templates/syslog-ng.conf.erb b/templates/syslog-ng.conf.erb
index f21ccc5f..4e5c26f6 100644
--- a/templates/syslog-ng.conf.erb
+++ b/templates/syslog-ng.conf.erb
@@ -455,3 +455,5 @@ log {
 	destination(loghost-paganini);
 };
 <%end%>
+
+