You probably want to look at "promise_repaired" at 
http://cfengine.com/manuals/cf3-reference.html#classes-in-_002a - but note that 
this applies to the WHOLE promise, so you should be careful where you set the 
class (that is, in the main promise, in a subcomponent, etc).  But FWIW, I use 
this feature extensively.

-Dan

On Jan 4, 2012, at 8:09 AM, Seifert, Christian wrote:

> Hello everybody,
>  
> i have a simple question about the syntax in cfengine.
> I want to configurate the snmpd.conf on many systems in my it-infrastructure. 
> For this task, I make changes on the snmp config file on the systems.
> After that, the snmd service should do a restart. The problem is following: 
> The snmpd service should only do a restart if cfengine make changes on the 
> snmd.conf.
> Is this possible?
>  
> Regards,
> -- 
> Christian Seifert
>  
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to