Re: Crontab question
- From: floyd@xxxxxxxxxx (Floyd L. Davidson)
- Date: Fri, 21 Jul 2006 15:12:43 -0800
The Natural Philosopher <a@xxx> wrote:
Floyd L. Davidson wrote:
"gmax2006" <mapsetah2000-maillist5@xxxxxxxx> wrote:
Hi,Cron sends you email if there is output from the program.
I have this entry in my crontab schedules:
*/1 * * * * date >> /home/max/cron.log
Means run this every minute.
The problem is if I do any modification on this entry, crontab
continues to follow the old entry for four or six minutes then read the
changes.
I tried to use crontab -e and save the file, but it doesn't work
and still it takes 2-4 minutes to crontab follow the new entry!
I guess there is some caching mechanism is going on, but how can I
force the crontab daemon to read the schedule file immediately?
Is there any standard troubleshooting procedure/command/toll for
crontab?
Whatever, the delay is not a "caching mechanism", it is just a
matter of how often the cron daemon runs stat(2) on the various
crontab files. Certainly once ever few minutes is reasonable...
If you want to force it, check the man page for the cron daemon
(cron or crond or some such). There are several versions of
cron in use, and I don't know if any of them allow using a
signal for for reconfiguration, but perhaps one does.
Regardless, you'd have to be root, and if you can be root you
also have the simple option of killing and restarting the cron
daemon, which has the same effect.
I am *fairly* sure that a KILL -HUP signal will force the cron
daemon to re-read its config files....ISTR having this issue
myself years ago..
Depends on which cron... there are several.
--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@xxxxxxxxxx
.
- Follow-Ups:
- Re: Crontab question
- From: Unruh
- Re: Crontab question
- References:
- Crontab question
- From: gmax2006
- Re: Crontab question
- From: Floyd L. Davidson
- Re: Crontab question
- From: The Natural Philosopher
- Crontab question
- Prev by Date: A new reader? Welcome to comp.os.linux.misc, read this first if you're new here (FAQ)
- Next by Date: Re: too many files....
- Previous by thread: Re: Crontab question
- Next by thread: Re: Crontab question
- Index(es):
Relevant Pages
|