Re: Restarting a service after a configuration file change.

2010-09-26 Thread Nicolas Charles
nk you for your help! Simon *From:* help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] *On Behalf Of *Nicolas Charles *Sent:* 26 September 2010 20:41 *To:* help-cfengine@cfengine.org *Subject:* Re: Restarting a service after a configuration file change. You're code

RE: Restarting a service after a configuration file change.

2010-09-26 Thread Simon Oxwell
Simon From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of Nicolas Charles Sent: 26 September 2010 20:41 To: help-cfengine@cfengine.org Subject: Re: Restarting a service after a configuration file change. You're code is nearly correct. You

Re: Restarting a service after a configuration file change.

2010-09-26 Thread Nicolas Charles
You're code is nearly correct. You just need to set the class if the promise is repaired, not if it's kept. body classes satisfied(new_class) { promise_repaired => { "$(new_class)"}; } Regards, Nicolas On 26/09/2010 21:29, Simon Oxwell wrote: Hi there, I'm running cfengine 3.0.4 on So

Restarting a service after a configuration file change.

2010-09-26 Thread Simon Oxwell
Hi there, I'm running cfengine 3.0.4 on Solaris 10, and I'm trying to build a promise that will append a line to my sshd_config file and then restart the ssh service, but only when the sshd_config has been updated. So far I've tried this: -- Start code bundle agent authorizedkeyfiles {