Forum: Cfengine Help
Subject: Re: how do you restart a process only after .conf update?
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,19969,19975#msg-19975
I normally do this using if_repaired from cfengine_stdlib.cf, like this:
files:
any.!ntp_servers::
"$(ntp_conf_dest)"
perms => system("644"),
copy_from => mycopy("$(master_etc)/ntp/$(ntp_conf_source)","$(p_server)"),
classes => if_repaired("restart_ntpd");
commands:
restart_ntpd::
"/etc/init.d/ntpd restart";
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine