From 9805eb7834e0280332b5f41ca01a24a9c495f670 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sat, 19 Jun 2010 22:45:47 +0000 Subject: [PATCH] force a restart, rather than reload, of syslog-ng Signed-off-by: Stephen Gran --- modules/debian-org/manifests/init.pp | 4 ++-- templates/syslog-ng.conf.erb | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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%> + + -- 2.39.2