Ah, that would do it.  I thought they were existing classes, and I
didn't check out cf-agent -v to see if they were really being set.

Thanks,

                        --Bruce


-----Original Message-----
From: Mark Burgess [mailto:mark.burg...@iu.hio.no] 
Sent: Monday, March 15, 2010 2:53 PM
To: Bruce Carleton
Cc: help-cfengine@cfengine.org
Subject: Re: Trouble with cf-execd


Bruce, the classes in your schedule are just made up ;-) Such classes do
not exist, so
they will never be matched. You could start by removing the schedule for
a default
of every five minutes.

Bruce Carleton wrote:
> 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

-- 
Mark Burgess

-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway

Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to