Forum: CFEngine Help
Subject: Re: How to run cf-twin using cf-runagent?
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,27316,27317#msg-27317

It seems like cfruncommand doesn't honour shell environment variables.

What about this; running via shell command.


cfruncommand => "/bin/sh -c \"LD_LIBRARY_PATH=\"/var/cfengine/lib-twin\" 
$(sys.cf_twin) -f failsafe.cf && $(sys.cf_agent)\"";


and don't forget to add /bin/sh to server access_rule()

Cheers,
-- Nakarin

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

Reply via email to