Alexander Mattausch typed the following on 15:11 18/12/2003 +0100
Kief Morris schrieb:
I want to find a way to restart daemons when their configuration files
have been changed. I thought I might use file checksum monitoring
to set a class (eg. "bind_needs_restart") that would later trigger
a shellcommand to run the init script ("/etc/init.d/bind9 reload").
However, the define attribute isn't triggered when the checksum
changes, so that's a no-go.
Add the following:
control:
AddInstallable = ( bind_needs_restart )
It still doesn't work. I can see why I would need this, but from the
documentation, it looks like the define= attribute only works if the
file statement causes the file to be changed - it specifically says
it doesn't set the class if there is only a warning. Have you got it
working this way?