On 09/20/2012 04:44 PM, no-re...@cfengine.com wrote:

> We have now:
> 
>   exec_command => 
>     "$(sys.workdir)/bin/cf-agent; $(sys.workdir)/bin/cf-agent -f 
> /var/cfengine/inputs/failsafe.cf";
> 
> So I'd propose switching to:
> 
>   exec_command => 
>     "$(sys.workdir)/bin/cf-agent -f /var/cfengine/inputs/failsafe.cf; 
> $(sys.workdir)/bin/cf-agent; $(sys.workdir)/bin/cf-agent -f 
> /var/cfengine/inputs/failsafe.cf";
> 
> 
> I think this would work, but it's somewhat unsightly.  Does this seem like a 
> reasonable solution to the problem to you?  Do you have other ideas?
> 

Jessica,

 We have the same command in our promises.cf file to make sure cf-agent is run 
with up-to-date file:
{{{
exec_command => "$(sys.workdir/bin//cf-agent -f failsafe.cf && 
$(sys.workdir)/bin/cf-agent";
}}}



-- 
********************************************************************
*  Bas van der Vlies                    e-mail: b...@sara.nl       *
*  SARA - Academic Computing Services   Amsterdam, The Netherlands *
********************************************************************

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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

Reply via email to