help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how best to define time classes


From: Mark . Burgess
Subject: Re: how best to define time classes
Date: Sat, 21 Feb 2004 22:13:10 +0100 (MET)

That is what ifelapsed is for

M

On 21 Feb, Kurt Lieber wrote:
> I want to be able to run cfagent every 15 minutes, but I also want to have
> certain parts of my config to be run once every two hours.
> 
> Right now, I have the following:
> 
> t_every2hours = (
>     Hr00.(Min0_5|Min5_10) Hr02.(Min0_5|Min5_10) Hr04.(Min0_5|Min5_10) 
> Hr06.(Min0_5|Min5_10)
>     Hr08.(Min0_5|Min5_10) Hr10.(Min0_5|Min5_10) Hr12.(Min0_5|Min5_10) 
> Hr14.(Min0_5|Min5_10)
>     Hr16.(Min0_5|Min5_10) Hr18.(Min0_5|Min5_10) Hr20.(Min0_5|Min5_10) 
> Hr22.(Min0_5|Min5_10)
> )
> 
> The (Min0_5|Min5_10) is there since I have a 10 minute SplayTime defined
> and I want to ensure this class gets run at least once every 2 hours
> 
> This seems overly cumbersome -- am I making it harder than it needs to be?
> Is there an easier way to accomplish the same task?
> 
> --kurt
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

[Prev in Thread] Current Thread [Next in Thread]