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 runs at wrong time

Discussion in 'General Discussion' started by roax66, May 20, 2004.

  1. roax66

    roax66 Well-Known Member

    Joined:
    Jan 21, 2004
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    I have set up a new server. It is located in US and uses WHM. I am in Sweden and therefore have changed server time to be Central European Time. When I run the date command in SSH the time is CET. The same is the case in WHM interface.

    When I run my cron jobs they execute according to US time and not according to CET. How can that be? Any help much appreciated.
     
  2. simpint

    simpint Member

    Joined:
    May 4, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    I'm always a big fan of logging... what's the output if you were to have a mistimed cron job echoing the date command into a file? Are you on a virtual account or is it dedicated?

    Dave
     
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    I remember that being posted before. I think the solution was to restart crond.

    In shell,
    /etc/init.d/crond restart
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Yup, that's usually it. Crond is very sensitive to large time shifts (i.e. more than an hour) and will simply continue on in blissful ignorance).
     
Loading...

Share This Page