Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-23-2008, 09:40 AM   #1
LQ Newbie
Registered: Jun 2008
Posts: 10

Rep: Reputation: 0
cron won't recognize time zone change

We were asked to change the time zone on a bunch of RHEL4 servers from Eastern to Central. So I relinked /etc/localtime, adjusted /etc/sysconfig/clock, and ran "hwclock --systohc". Everything now displays the time as CST.

I then stopped and restarted crond. However, cron still seems to think it's EST. All jobs get started as if it's still EST.

I rebooted one server and it now starts everything at the correct CST time, but I don't want to have to do that on all my servers.

What step am I missing? How do I get crond to recognize the new time zone without rebooting the entire server?
Old 09-23-2008, 11:33 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,147

Rep: Reputation: 229Reputation: 229Reputation: 229
According to the man page:

Daylight Saving Time and other time changes
Local time changes of less than three hours, such as those caused by the start or end of Daylight Saving Time, are handled
specially. This only applies to jobs that run at a specific time and jobs that are run with a granularity greater than one
hour. Jobs that run more frequently are scheduled normally.

If time has moved forward, those jobs that would have run in the interval that has been skipped will be run immediately.
Conversely, if time has moved backward, care is taken to avoid running jobs twice.

Time changes of more than 3 hours are considered to be corrections to the clock or timezone, and the new time is used immedi-
Make sure your changes don't fall into the normal behavior of cron.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change time zone procfs Linux - General 14 05-03-2006 11:16 PM
affect change of time zone on active process manishpatidar Linux - General 1 12-22-2005 10:38 AM
Time zone stuck in UTC - how to change? Ook Slackware 2 04-24-2005 11:55 PM
change UTC to EST time zone. brian_eye Linux - Newbie 1 10-27-2003 06:08 PM

All times are GMT -5. The time now is 12:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration