LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 09-23-2008, 08:40 AM   #1
rl92694
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, 10:33 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

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

Quote:
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-
ately.
Make sure your changes don't fall into the normal behavior of cron.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 05:39 PM.

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