I'm setting up a new cfengine infrastructure with cf3 and I think I'm
having some trouble getting cf-execd to run cf-agent.  Here's my
executor control body:

body executor control

{
splaytime => "1";
mailto => "bruce.carle...@jasperwireless.com";
smtpserver => "localhost";
mailmaxlines => "30";
schedule => { "Min2_7", "Min32_37" };

# Instead of a separate update script, now do this

exec_command => "$(sys.workdir)/bin/cf-agent -f failsafe.cf &&
$(sys.workdir)/bin/cf-agent";
}

This is the crontab from /etc/crontab:

*/5 * * * * root /usr/local/sbin/cf-execd -F

I'm running cfengine-3.0.3 on CentOS 5.4.  As far as I can tell from the
runlog, /var/log/messages, /var/log/cron and checking email for root,
cf-agent isn't running when cf-execd runs.  I also tried running
cf-execd with the -v flag and the command line and it walked past the
schedule times, without appearing to run cf-agent.  I can run cf-agent
on the command line and it works normally.  I'm pretty sure I'm missing
something, but it's not obvious to me.  Any tips?

Thanks,

                        --Bruce

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

Reply via email to