summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-07 22:16:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-07 22:16:52 -0300
commit340b703801c3e58ba9f7f211f131f0d5ae068388 (patch)
tree63eedfa8278aeda6f2d5b40a6e93e2b561324fa8
parent23ac2312b4edea43cc1266898bfa787e787dbbcc (diff)
downloadpuppet-rsyslog-340b703801c3e58ba9f7f211f131f0d5ae068388.tar.gz
puppet-rsyslog-340b703801c3e58ba9f7f211f131f0d5ae068388.tar.bz2
Restart rsyslog after fixing the symlink
-rw-r--r--manifests/init.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 8aa7a39..902182e 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -26,6 +26,11 @@ class rsyslog {
owner => 'root',
group => 'root',
require => Package['rsyslog'],
- notify => Service['rsyslog'],
+ notify => Exec['restart-rsyslog'],
+ }
+
+ exec { 'restart-rsyslog':
+ command => '/usr/sbin/service rsyslog restart',
+ refreshonly => true,
}
}