On 09/20/2012 04:44 PM, [email protected] 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: [email protected] *
* SARA - Academic Computing Services Amsterdam, The Netherlands *
********************************************************************
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Help-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/help-cfengine
