Forum: CFEngine Help Subject: restart cf-serverd after cf-serverd.cf is modified Author: skel84 Link to topic: https://cfengine.com/forum/read.php?3,24777,24777#msg-24777
Hi, i can't figure out how to restart the cf-serverd after a modify happened and has been pulled from the policy server. I have an svn repository where i set my policies. Let's assume i modify a parameter in the cf-serverd.cf which contains the body server control. In the next cf-agent's run the update bundle will download the modified cf-serverd.cf files, but a "bundle agent server" such as the following won't restart the process because it finds it already running. bundle agent server { processes: "cf-serverd" restart_class => "start_cfserverd"; commands: start_cfserverd:: "${sys.workdir}/bin/cf-serverd"; } I figured out i can bypass this by having the bundle agent server itself pulling the file and setting a restart class which contains a stop signal and then a restart, but it looks a bit too tricky to me. Im pretty sure there's a neater solution and i'm probably missing something very basic here... How can i overcome this? I'm running 3.1.5 community version. Any help will be much appreciated Thanks _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine