Fixed rsyslog restart for Fedora 18. Service cannot be stopped with systemctl or service command anymore.

This commit is contained in:
Timo Mkinen 2013-01-17 11:47:04 +02:00
parent b5a9073efb
commit 0019d10f1f

View file

@ -175,16 +175,20 @@ class syslog::client::rsyslog {
}
service { "rsyslog":
ensure => running,
enable => true,
start => $::operatingsystem ? {
ensure => running,
enable => true,
start => $::operatingsystem ? {
"openbsd" => $::operatingsystemrelease ? {
/4\.[1-8]/ => "pkill syslogd; /usr/local/sbin/rsyslogd -c 4 -x -i /var/run/syslog.pid",
default => undef,
},
default => undef,
},
require => File["/var/log/all.log"],
hasrestart => $::operatingsystem ? {
"fedora" => true,
default => false,
},
require => File["/var/log/all.log"],
}
if $::operatingsystem == "OpenBSD" and $::operatingsystemrelease !~ /4\.[1-8]/ {