Yes, you either launch cf-execd as a deamon, and then the schedule
(and splaytime) is used, or you use the cron (cf-execd -F) and it
launches cf-agent at the given time of the cron

Nicolas

On Tue, Apr 6, 2010 at 12:06 AM,  <mega...@gmail.com> wrote:
> On Apr 6, 2010 8:51am, Bruce Carleton <bruce.carle...@jasperwireless.com>
> wrote:
>> I have a problem where it appears that my schedule for running cf-agent
>>
>> is being ignored.  I'm trying to set it to run once an hour using this
>>
>> schedule:
>>
>>
>>
>> body executor control
>>
>>
>>
>> {
>>
>> splaytime => "5";
>>
>> mailto => "bruce.carle...@jasperwireless.com";
>>
>> smtpserver => "localhost";
>>
>> mailmaxlines => "30";
>>
>> schedule => { "Min00_05" };
>>
>>
>>
>> # Instead of a separate update script, now do this
>>
>>
>>
>> exec_command => "$(sys.workdir)/bin/cf-agent -f failsafe.cf &&
>>
>> $(sys.workdir)/bin/cf-agent";
>>
>> }
>>
>>
>>
>> I'm calling cf-execd from cron every five minutes on my clients:
>>
>>
>>
>> */5 * * * * root /usr/sbin/cf-execd -F
>>
>>
>>
>> The outcome is that cf-agent is getting called every five minutes.  Is
>>
>> there an obvious problem with my configuration?
>
> I suspect Cfengine only respects the Schedule configuration when running as
> a daemon - you are running in foreground mode where it just executes the
> 'exec_command' immediately.
>
>
>>
>>
>>
>> Thanks,
>>
>>
>>
>>                        --Bruce
>>
>>
>>
>>
>>
>> _______________________________________________
>>
>> Help-cfengine mailing list
>>
>> Help-cfengine@cfengine.org
>>
>> https://cfengine.org/mailman/listinfo/help-cfengine
>>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
>
>
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to