The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cronjobs running at wrong times

Discussion in 'General Discussion' started by domhandy, Nov 15, 2008.

  1. domhandy

    domhandy Member

    Joined:
    Nov 3, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    Hi

    All my cronjobs (user's and system's) are running 5 hours after the time they are supposed to. So, for instance, it is starting the backup at 6am instead of 1am. Same happens with cPanel cronjobs too. I've looked in the crontabs and they show the correct running time (eg, 0 1 * * * /scripts/cpbackup).

    The server time is Europe/Guernsey (London), and shows the correct time everywhere (on emails, in 'uptime' via shell). Any clues, as it's stumped me! It's almost as if, even though I have changed the server time to GMT, it actually thinks it is EST (the server is actually based in New Jersey).

    Thanks

    Dom
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Does the server time link in WHM give you the correct time? (your time)
     
  3. domhandy

    domhandy Member

    Joined:
    Nov 3, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    Yes, it does. It shows GMT (./Europe/Guernsey), and I've synced the machine time.
     
  4. domhandy

    domhandy Member

    Joined:
    Nov 3, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    It seems the cron service doesn't automatically get restarted when you make a timezone change in WHM. This really should be done by WHM ;)

    Code:
    service crond restart
     
Loading...

Share This Page