Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cron Scheduing Question...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
tgatliff
n00b
n00b


Joined: 06 Jun 2006
Posts: 14

PostPosted: Fri Sep 15, 2006 7:26 pm    Post subject: Cron Scheduing Question... Reply with quote

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
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Sep 15, 2006 7:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
jhmartin
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2003
Posts: 95

PostPosted: Fri Sep 15, 2006 7:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
tgatliff
n00b
n00b


Joined: 06 Jun 2006
Posts: 14

PostPosted: Fri Sep 15, 2006 8:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
jhmartin
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2003
Posts: 95

PostPosted: Fri Sep 15, 2006 8:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum