View previous topic :: View next topic |
Author |
Message |
tgatliff n00b
Joined: 06 Jun 2006 Posts: 14
|
Posted: Fri Sep 15, 2006 7:26 pm Post subject: Cron Scheduing Question... |
|
|
Hello,
I have one server that when I set a job to run at 2:00am, it runs at 11:00pm instead. I suspect this is something simple, but I am completely confused as to what it might be... Any ideas on what I did wrong??
Crontab
=============================
#Mins Hours Days Months Day of Week
0 2 * * * /root/test.sh
=============================
Logging Cron Start Times (Start)
======================
Wed Sep 13 22:00:02 EDT 2006
Thu Sep 14 22:00:01 EDT 2006
======================
# ls -la /etc/localtime
lrwxrwxrwx 1 root root 30 Apr 26 2005 /etc/localtime -> /usr/share/zoneinfo/US/Eastern
Thanks,
Thomas |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Fri Sep 15, 2006 7:37 pm Post subject: |
|
|
Moved from Installing Gentoo to Other Things Gentoo. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
jhmartin Tux's lil' helper
Joined: 03 Sep 2003 Posts: 95
|
Posted: Fri Sep 15, 2006 7:48 pm Post subject: |
|
|
Thats very interesting. Have you changed the timezone on your machine recently? If so, I suggest restarting the machine or at least cron. |
|
Back to top |
|
|
tgatliff n00b
Joined: 06 Jun 2006 Posts: 14
|
Posted: Fri Sep 15, 2006 8:06 pm Post subject: |
|
|
jhmartin wrote: | Thats very interesting. Have you changed the timezone on your machine recently? If so, I suggest restarting the machine or at least cron. |
The timezone on this was originally set before, and the have been rebooted since then. There are only two things that I did not discuss earlier.
1) This is a vserver, but the master vserver is also in the same timezone.
2) This vserver has been running for 672 days, and they do not want to reboot it for what they feel is a small problem because we dont want to force the extra workload to other servers.
Here is my only proposed solution, which I am considering doing for tonight:
- Add 3 hours to the current setting. (ie. Make it 5 instead of 2)
Any other ideas? My original thought was I was doing something dumb, which is why I posted...
Thanks,
Thomas |
|
Back to top |
|
|
jhmartin Tux's lil' helper
Joined: 03 Sep 2003 Posts: 95
|
Posted: Fri Sep 15, 2006 8:22 pm Post subject: |
|
|
The problem is that if cron is off then who knows what else is off. Does syslog show the correct time? What about the output of 'date'? Are both the vserver and real server running with their hardware clocks set to GMT?
Are you sure the cron is happening when it says it is, or could it be that only the time displayed when it finishes is off?
I'd be concerned that something else in the system is handling time wrong and how that might affect your application. |
|
Back to top |
|
|
|