I believe that cf-serverd is not setting VINPUTFILE using the full path of
promises.cf. Consider the following output:
# cf-serverd -v
cf3 Cfengine - autonomous configuration engine - commence self-diagnostic
prelude
...
cf3 Listening for connections ...
cf3 There is no readable input file at promises.cf
cf3 (stat: No such file or directory)
cf3 There is no readable input file at promises.cf
cf3 (stat: No such file or directory)
cf3 There is no readable input file at promises.cf
cf3 (stat: No such file or directory)
.... and so on
In function GenericInitialize (generic_agent.c):
if (!MINUSF)
{
snprintf(VINPUTFILE,CF_BUFSIZE-1,'promises.cf");
}
I think that should be:
if (!MINUSF)
{
snprintf(VINPUTFILE,CF_BUFSIZE-1,"%s/inputs/promises.cf",CFWORKDIR);
<<<<<< use the full path
}
Thanks,
Matt
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine