On 3/12/07, kelsey hudson <[EMAIL PROTECTED]> wrote:
Néstor wrote:
> OK linux gods,
>
> I update my time on my RHEL 3 and when I type 'date' on my systems it
> is correct, but I noticed that my cron jobs are running
> an hour late.  My 00-logwatch cron has a perl command
> for 'localtime(time)' and that display as 1 hour later

Restart your syslog daemon, cron daemon, and anything else that was
running during the time you updated /etc/localtime. If the processes
have a file handle to the old /etc/localtime, they'll still be an hour off.

lsof(8) shows no open files in /usr/share/zoneinfo nor /etc/localtime

Groveling through the sources, I have found the following:

crond runs (once per minute) and calls localtime(3), which is part of
libc, to get the local time.
localtime by default looks for timezone information in /etc/localtime.

syslog calls ctime(3) to make UTC timestamps.  This should not be
affected by timezone.

   carl
--
   carl lowenstein         marine physical lab     u.c. san diego
                                                [EMAIL PROTECTED]


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to