Quoting Sans <r.santanu....@gmail.com>:
Dear all,
How can i restart "a" service on the agent [only] if the associated
configuration file is changed. e.g. if I change the configuration in
ntp.conf, I like to restart the ntpd as soon as the changes are
detected and applied. Is there a way of doing that? Cheers!!
check out "subscribe => File['configurationfilename']" in your service
stanza or "notify => Service['servicename']" in your file stanza,
either will work.
check the docs for more information.
M.
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.