Re: cron.hourly runs twice

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



 

> -----Original Message-----
> From: centos-bounces@xxxxxxxxxx 
> [mailto:centos-bounces@xxxxxxxxxx] On Behalf Of Michael Schumacher
> Sent: Wednesday, March 17, 2010 9:00
> To: CentOS mailing list
> Subject: Re:  cron.hourly runs twice
> 
> Timothy,
> 
> On Wednesday, March 17, 2010 you wrote:
> 
> >>> For some reason I cannot fathom,
> >>> cron.hourly runs twice each hour
> >>> on one of my two CentOS-5.4 systems,
> 

Need to get a look into the runtime environment:

Add this to the cron.hourly

#!/bin/sh
pstree -up >> /tmp/foo.log

Next hour look at the parents (and their pids).

> Here comes a very weird idea. I don't know the internals of 
> the cron-daemon good enough to know if this can actually happen.
> If you have a NTP-job every hour started by cron that 
> corrects the internal time and if your internal clock runs 
> too fast, the system time may be reset every hour so that the 
> cron-job will start twice. As I said, I don't know if 
> cron-daemon has a mechanism that would avoid that problem.
> 
> 
> best regards
> ---
> Michael Schumacher
> PAMAS Partikelmess- und Analysesysteme GmbH Dieselstr.10, 
> D-71277 Rutesheim Tel +49-7152-99630 Fax +49-7152-996333
> Geschäftsführer: Gerhard Schreck
> Handelsregister B Stuttgart HRB 252024
> 
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
> 


--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux