Re: Cron and Summer/winter time

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

 



At 4:31 PM -0700 4/26/06, Joel Jaeggli wrote:
>On Wed, 26 Apr 2006, Chris Ruprecht wrote:
>
>> Guys,
>>
>> I'm sure there is a solution for this:
>> When I schedule a daily job to run at 1:30 AM and we switch from Winter to
>> Summer time, the job doesn't run, because when the clock reaches 1 AM it's
>> suddenly 2 AM and 1:30 AM never happens.
>>
>> The same job would run twice, when we switch back because when it's 2 AM, it
>> has already run 30 minutes before, but then it's suddenly 1 AM again and
>> it'll run again in 30 minutes.
>>
>> For simple clean-up jobs, this might be acceptable, but when running more
>> complex jobs that need to run once and only once per day, this isn't
>>going to
>> work too well.
>>
>> Any ideas?
>
>Use UTC on all your servers, set local time zone inside your shell
>(assuming you care). Daylight saving is really a convention for people not
>machines anyway.

Man cron says DST changes are handled automatically, and that the job(s)
will run immediately when skipped over by a DST change.  Since they're not,
that seems to be where to start looking.

And there's always anacron.
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson@xxxxxxxxxxxxxxxxx>
      '                              <http://www.georgeanelson.com/>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux