Fixed rsyslog restart for Fedora 18. Service cannot be stopped with systemctl or service command anymore.
This commit is contained in:
parent
b5a9073efb
commit
0019d10f1f
1 changed files with 8 additions and 4 deletions
|
@ -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]/ {
|
||||
|
|
Loading…
Add table
Reference in a new issue