help-cfengine
[Top][All Lists]
Advanced

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

how best to define time classes


From: Kurt Lieber
Subject: how best to define time classes
Date: Sat, 21 Feb 2004 15:17:45 -0500
User-agent: Mutt/1.5.5.1i

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

Attachment: pgpVzgLWQ1tsl.pgp
Description: PGP signature


reply via email to

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