LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-15-2009, 02:15 PM   #1
hbbtstar
Member
 
Registered: Aug 2003
Posts: 74

Rep: Reputation: 15
Cron error: help with cron and changing system time


Hi all!

I'm having a really weird problem that I can't seem to figure out. I have changed the system timezone from CST to EST, and now cron won't run, not even an hour early. If I do not specify an hour, they work; I.E. 15 * * * * works but 15 3 * * * does not work. I have seen some forum posts about unsetting $TZ, and I did, but it didn't work, and I've seen other posts that tell me to reboot the server. I'd really rather not reboot the server, if need be I could but I'd rather not suffer the downtime. Any ideas? Thanks!

EDIT: I realized I should probably provide a little more background info; it's been a long day, sorry. Cron was running fine, but I realized that jobs were running an hour early; not normally a big deal, but I thought I'd go ahead and change the timezone (which I did by symlinking the new timezone to /etc/localtime). I then noticed, however, that cron jobs that specified the hour simply failed to run. I checked cron.log, and nothing; it's as if it simply wasn't there in /etc/crontab. Other jobs in there that did not specify the hour, however, ran perfectly fine and were so noted by cron.log. I tried adding cron jobs in user crontabs, and nothing; the same error persists. I have restarted cron, with no luck; I don't know what else to do. Thanks in advance!

Last edited by hbbtstar; 10-15-2009 at 02:26 PM.
 
Old 10-15-2009, 09:10 PM   #2
hbbtstar
Member
 
Registered: Aug 2003
Posts: 74

Original Poster
Rep: Reputation: 15
After wrestling with it for quite a long time, I just notified users that there would be a momentary downtime and rebooted the server... it works fine now, but I have no idea what the problem was!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cron.hourly cron.weekly cron.monthly and 0anacron. Are they necessary? glore2002 Debian 2 09-30-2009 08:57 PM
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 08:16 AM
cron not working from crontab nor form /etc/cron/cron.d. What did SuSE change? JZL240I-U SUSE / openSUSE 11 01-04-2007 01:57 AM
Can any one plz explain why/what for cron.d, cron.daily, cron.weekly etc are there. mavinashbabu Linux - Newbie 4 09-21-2006 01:50 PM
How can I change the default time of cron of the system? wuqso Linux - General 5 06-15-2006 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:41 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration