[CentOS] cron.hourly runs twice

Tue Mar 16 17:29:55 UTC 2010
Robert Nichols <rnicholsNOSPAM at comcast.net>

On 03/16/2010 10:11 AM, Jeff wrote:
> On Tue, Mar 16, 2010 at 9:15 AM, Timothy Murphy<gayleard at eircom.net>  wrote:
>> For some reason I cannot fathom,
>> cron.hourly runs twice each hour
>> on one of my two CentOS-5.4 systems,
>> as reported in /var/log/cron:
>> -------------------------
>> Mar 16 14:01:01 helen crond[27833]: (root) CMD (run-parts /etc/cron.hourly)
>> Mar 16 14:01:01 helen crond[27834]: (root) CMD (run-parts /etc/cron.hourly)
>> -------------------------
>> On the other it just runs once, as expected.
>> -------------------------
>> Mar 16 13:01:01 althea crond[23373]: (root) CMD (run-parts /etc/cron.hourly)
>> Mar 16 14:01:01 althea crond[23553]: (root) CMD (run-parts /etc/cron.hourly)
>> Mar 16 15:01:01 althea crond[23695]: (root) CMD (run-parts /etc/cron.hourly)
>> -------------------------
>>
>> This doesn't have any bad effect,
>> but it does run the scripts in /etc/cron.hourly twice.
>>
>> I just wonder if anyone has come across this curiosity?
>> Or can suggest any possible cause.
>
> hourly, daily, weekly and monthly jobs are configured in /etc/crontab.
> What's your /etc/crontab look like? Are you seeing the same behavior
> for daily/weekly jobs? Have you simply tried restarting the cron
> service?

Also, make sure that cron.hourly is _not_ run from /etc/anacrontab or
from any of the crontabs in /var/spool/cron.

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.