Displaying 1 result from an estimated 1 matches for "rsyslogserver".
Did you mean:
syslogserver
2009 Jan 23
2
Notifying a service when config file changes
...the "line" resource type to add the
necessary entry to /etc/syslog.conf file, and I need a way to notify the
syslog service to restart whenever the config file changes.
Currently, this is what I''ve done:
*service {syslog:
ensure => running,
subscribe => Line["rsyslogserver"]
}
line { "rsyslogserver":
file => "/etc/syslog.conf",
line => "*.* @server1.example.com",
ensure => present
notify => Service[syslog]
}
*
I thought that the "notify" line would make sure that the syslog service
would r...