Re: Question about cron timing



On Fri, 23 Mar 2007, in the Usenet newsgroup comp.unix.bsd.freebsd.misc, in
article <0m1ed4-s8u.ln1@xxxxxxxxxx>, Charlie Sorsby wrote:

If I edit with crontab -e, the log entry shows th
proper time stamp but for anything that cron runs, it shows a time
stamp for the hour before. Here's a short snippet from the log file:

Yes - they are different processes - as the log shows

Mar 23 14:54:00 sorsby /usr/sbin/cron[131]: (root) RELOAD (tabs/root)

Reloading the _crontab_

Does cron *not* use the same clock as the rest of the system?

Yes

How does one tell cron that we're on daylight saving time now?

Same way everyone else does - by computing the time plus the offset.

(And, yes, I did fetch the time-zone configuration file from
ftp://elsie.nci.nih.gov/pub/tzdata2007b.tar.gz and perform the
steps per:
http://articles.techrepublic.com.com/5102-10877-6163042.html
and, as far as I can tell, everything is running on DST -- *except*
cron.

Ah, one of the joys of living in Arizona where I don't have to put
up with this crap. Anyway, when did you replace the files, compared
to when did the cron daemon _start_ (not reload, but start)? Some
processes only look at the tzset information when they start. As a
shot, try sending cron a -HUP (kill 30592 -HUP) and see if that
cures it - and if not, try stopping and starting the daemon.

Old guy

.



Relevant Pages

  • PHP from Cron failed
    ... I have a PHP codes that connect to a local ORACLE database and performs some ... I want to do it by cron. ... this fail only reproducable when the cron daemon actually run it. ...
    (RedHat)
  • Re: explanation of yum.cron + a little frustration.
    ... The yum cron job is running from the cron daemon; ... to run from cron but do want to retain yum functionality for manual ...
    (Fedora)
  • Re: cron problem
    ... The cron daemon runs the command named in the sixth field at the selected ... Add a backslash before the percent signs in your crontab entry. ...
    (AIX-L)
  • Re: persistent cron error
    ... > I get the following error for a cron job that runs ntpdate: ... > From: Cron Daemon ... > # m h dom mon dow user command ...
    (Debian-User)