Des Dougan <[EMAIL PROTECTED]> said:

> Darrell,
> 
> You shouldn't have to do anything - the cron daemon refreshes when
> changes have been made according to the man page. For example, when I
> made the change for flexbackup, it was picked up OK. Do you want to
> post an example to see if there's something obvious you may have missed?

In the example below I have raidmonitor checking every 15 minutes and RAV 
updating very 30 minutes.  Everything is working just fine so I know 
my /etc/cron.d entries are correct.

Sep 28 09:30:00 e-smith CROND[8328]: (root) CMD 
(/usr/local/bin/raidmonitor -v)
Sep 28 09:30:00 e-smith CROND[8329]: (root) CMD 
(/usr/local/rav8/bin/ravav --update engine --host ftp.us.ravantivirus.com 
> /dev/null 2>&1)
Sep 28 09:40:00 e-smith CROND[8595]: (root) CMD (   /sbin/rmmod -as)
Sep 28 09:45:00 e-smith CROND[8696]: (root) CMD 
(/usr/local/bin/raidmonitor -v)
Sep 28 09:50:00 e-smith CROND[9440]: (root) CMD (   /sbin/rmmod -as)
Sep 28 10:00:00 e-smith CROND[10964]: (root) CMD (/sbin/e-smith/awstats-
pp -s -n)
Sep 28 10:00:00 e-smith CROND[10965]: (root) CMD (   /sbin/rmmod -as)
Sep 28 10:00:00 e-smith CROND[10966]: (root) CMD 
(/usr/local/bin/raidmonitor -v)
Sep 28 10:00:00 e-smith CROND[10967]: (root) CMD 
(/usr/local/rav8/bin/ravav --update engine --host ftp.us.ravantivirus.com 
> /dev/null 2>&1)

To be more clear, what I'm reporting, at least for me, is cron doesn't 
seem to pick up changes automatically.  Is it supposed to?

I changed these templated entries, which were running every hour on the 
15 & 30 minute mark, once per hour:

[root@e-smith /root]# cat /etc/cron.d/raidmonitor
15 * * * * root /usr/local/bin/raidmonitor -v

[root@e-smith /root]# cat /etc/cron.d/ravupdate
30 * * * * root /usr/local/rav8/bin/ravav --update engine --host \
ftp.us.ravantivirus.com > /dev/null 2>&1

To run every 15 & 30 minutes:

[root@e-smith /root]# cat /etc/cron.d/raidmonitor
*/15 * * * * root /usr/local/bin/raidmonitor -v

[root@e-smith /root]# cat /etc/cron.d/ravupdate
*/30 * * * * root /usr/local/rav8/bin/ravav --update engine --host \
ftp.us.ravantivirus.com > /dev/null 2>&1

But cron did not pick up the changes automatically.  Nor did:

/etc/rc.d/init.d/crond stop|start|restart|reload ... etcetera do any good

It took a full reboot to get everything working just fine.

Could simply be my server, I don't know.  I was just wondering if there 
was some other command to use to force cron to refresh.

I always thought reboots were for Windows :)

Regards,

-- 
Darrell May
DMC NETSOURCED.COM
http://netsourced.com
http://myEZserver.com



--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to