Forum: CFEngine Help
Subject: Re: Understanding CF's log
Author: marc
Link to topic: https://cfengine.com/forum/read.php?3,23269,23271#msg-23271

Well figured some of it out. 

The "version (not specified)" was because I did not have a version number in me 
failsafe.cf. That has been fixed now.

All the repairs was because failsafe was called before cf-agent. And because of 
provision stuff I do diffrent things in my failsafe vs my update. So when the 
failsafe promises ran it sat file permission to one thing. And then when 
cf-agent ran it corrected it :-(

But this has just lead me to other questions.

Is it best practice to run cf-agent from the executor like this:

exec_command => "$(sys.workdir)/bin/cf-agent -f failsafe.cf && 
$(sys.workdir)/bin/cf-agent";


Or is this not as good(when I have a update promise)

exec_command => "$(sys.workdir)/bin/cf-agent";


And is it best practice to have matching update and failsafe promises?

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

Reply via email to