How do you tell CFEngine to restart a service if it had to update the config?
(copied below: roughly, since I don't have access to email on the same system).
What I have successfully copies the sshd_config, but I can't seem to find how
to restart sshd.
Thanks,
TimW
bundle agent CPPredhat_c_5_ssh
{
classes:
"CPPredhat_c_5_ssh" expression => "any";
files:
"/etc/issue.net"
copy_from =>
secure_cp("/srv/common/etc/issue.net","fileserver.cpp"),
perms => mog("644","root","root");
"/etc/ssh/ssh_config"
copy_from =>
secure_cp("/srv/common/etc/ssh/ssh_config","fileserver.cpp"),
perms => mog("644","root","root");
"/etc/ssh/sshd_config"
copy_from =>
secure_cp("/srv/common/etc/ssh/sshd_config","fileserver.cpp"),
perms => mog("600","root","root");
command:
sshd_restart_needed::
}
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine