[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: REPOST: something wrong with time classes
From: |
Mark . Burgess |
Subject: |
Re: REPOST: something wrong with time classes |
Date: |
Sun, 18 Apr 2004 22:37:12 +0200 (MEST) |
So, assuming that you run exactly at 00 in cron, you want
t_on00.t_every2hours_00::
Another way (if you don't know when the agent runs) is to use ifelapsed locks
set to 120 minutes.
M
On 18 Apr, Russell Adams wrote:
> How are you running cfengine in the background?
>
> Via cron, or cfexecd -g? If you're using cfexecd, whats the schedule
> set to?
>
> Russell
>
> On Sun, Apr 18, 2004 at 06:40:13AM -0500, Kurt Lieber wrote:
>> _______________________________________________
>> Help-cfengine mailing list
>> Help-cfengine@gnu.org
>> http://mail.gnu.org/mailman/listinfo/help-cfengine
>>
>
>> Date: Sun, 18 Apr 2004 06:45:14 -0500
>> Subject:
>>
>>
>
>> All -- reposting since I'm still having a problem with this. Any
>> assistance is appreciated.
>>
>> --kurt
>>
>> ----- Forwarded message from Kurt Lieber <klieber@gentoo.org> -----
>>
>> Date: Thu, 15 Apr 2004 21:50:30 -0400
>> From: Kurt Lieber <klieber@gentoo.org>
>> To: help-cfengine@gnu.org
>> Subject: something wrong with time classes
>>
>> I'm trying to set up a time class that runs every two hours. So far, I
>> have:
>>
>> # TIME DEFINITIONS
>> t_on00 = ( Min00_05 Min05_10 )
>>
>> t_everyhour_00 = ( t_on00 )
>>
>> t_on15 = ( Min15_20 Min20_25 )
>>
>> t_on30 = ( Min30_35 Min35_40 )
>>
>> t_on45 = ( Min45_50 Min50_55 )
>>
>> t_on00::
>>
>> t_every2hours_00 = ( Hr00 Hr02 Hr04 Hr06 Hr08 Hr10 Hr12 Hr14 Hr16 Hr18
>> Hr20 Hr22 )
>>
>> The goal is to define a class that will only run on even hours, between :00
>> and :10.
>>
>> However, it's not working. I have a block of code that is called via:
>>
>> _fileperms._glsamakerserver.(t_every2hours_00|run_glsamakertest)::
>>
>> But it never gets executed automatically. Only if I run cfagent
>> -Drun_glsamakertest. (I've ensured that cfagent is executing at the correct
>> times)
>>
>> I obviously have something dorked up with the time classes, but I don't
>> know what.
>>
>> Any help is appreciated.
>>
>> --kurt
>>
>>
>>
>>
>>
>> ----- End forwarded message -----
>
>
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~