[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Configuring job to run every five minutes
From: |
Albers, Lucas |
Subject: |
Configuring job to run every five minutes |
Date: |
Tue, 6 May 2003 13:11:28 -0600 |
How can I configure a cfagent job to run every five minutes?
According to the documentation it lists, you can configure to run at an
offset of the hour, but not run every 5 minutes.
http://www.cfengine.org/docs/cfengine-Reference.html
In the section:
Cfengine classes
* A day of the week (in the form Monday Tuesday Wednesday..).
* An hour of the day (in the form Hr00, Hr01 ... Hr23).
* Minutes in the hour (in the form Min00, Min17 ... Min45).
* A five minute interval in the hour (in the form Min00_05, Min05_10 ...
Min55_00)
* A quart hour (in the form Q1, Q2, Q3, Q4)
* An abbreviated time with quarter hour specified (in the form Hr00_Q1,
Hr23_Q4 etc.)
* A day of the month (in the form Day1 ... Day31).
* A month (in the form January, February, ... December).
* A year (in the form Yr1997, Yr2001).
I am trying to configure the system to check critical services every five
minutes and restart them if necessary.
Example, that is not quite correct:
This only restarts the service on the 5 minute of the hour.
Min00_05::
Linux::
"sendmail" restart "service sendmail start" inform=true
"sshd" restart "service sshd start" inform=true
"mysqld" restart "service mysqld start" inform=true
"ncftpd" restart "service ncftpd start" inform=true
"/usr/bin/postmaster" restart "service postgresql start" inform=true
"smbd" restart "service smb start" inform true
"xfs" restart "service xfs start" inform=true
"httpd" restart "service httpd start" inform=true
"lpd" restart "service lpd start" inform=true
"nfsd" restart "service nfs start" inform=true
"identd" restart "service identd start" inform=true
"nscd" restart "service ncsd start" inform=true
Thanks for any help you can provide.
- Configuring job to run every five minutes,
Albers, Lucas <=