Forum: CFEngine Help
Subject: How to run cf-twin using cf-runagent?
Author: aleksey_c
Link to topic: https://cfengine.com/forum/read.php?3,27316,27316#msg-27316
Hello,
I want to be able to run CFE binary update immediately using cf-runagent. So I
configured the following:
body server control
{
...
linux::
cfruncommand => "LD_LIBRARY_PATH=\"/var/cfengine/lib-twin\" $(sys.cf_twin) -f
failsafe.cf && $(sys.cf_agent)";
}
Of course it is only the part of code. Also I create cf-twin and lib-twin
policies for self-upgrading purpose.
But cf-serverd return the following error on cf-runagent execution
AccessControl(LD_LIBRARY_PATH="/var/cfengine/lib-twin")
Couldn't resolve filename LD_LIBRARY_PATH="/var/cfengine/lib-twin" from host
localhost.odnoklassniki.ru
!!! System error for lstat: "No such file or directory"
Couldn't stat filename /var/cfengine/LD_LIBRARY_PATH=" requested by host
localhost.odnoklassniki.ru
!!! System error for lstat: "No such file or directory"
Server refusal due to denied access to requested object
So the question is, is it possible to run CFE binary update using cf-runagent?
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine