syslog: Restart daemon if $syslog_datadir is changed.
This commit is contained in:
parent
5aa8c52f2b
commit
7c56669924
1 changed files with 6 additions and 0 deletions
|
@ -335,6 +335,9 @@ class syslog::standalone::syslogd inherits syslog::client::syslogd {
|
|||
require => [ File["/srv/log"],
|
||||
File["/var/log/all.log"], ],
|
||||
}
|
||||
Service["syslogd"] {
|
||||
subscribe => File["/srv/log"],
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -350,6 +353,9 @@ class syslog::standalone::rsyslog inherits syslog::client::rsyslog {
|
|||
require => [ File["/srv/log"],
|
||||
File["/var/log/all.log"], ],
|
||||
}
|
||||
Service["rsyslog"] {
|
||||
subscribe => File["/srv/log"],
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue