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.

Auto-reboot

Discussion in 'General Discussion' started by Djelibeybi, Oct 12, 2002.

  1. Djelibeybi

    Djelibeybi Well-Known Member

    Joined:
    Mar 19, 2002
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Anyone successfully managed to get a WHM-managed server to auto-reboot via Crontab? Any suggestions welcome.
     
  2. hypedave

    hypedave Member

    Joined:
    Sep 18, 2002
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    I was jus wondering this same thing to,
     
  3. BJMG

    BJMG Active Member

    Joined:
    Jul 24, 2002
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    I used to run a server which I needed to reboot every 6 hours. I ran the following via cron:

    1. pico/vi /etc/crontab
    2. * 03 * * * root reboot

    This would reboot your server everyday at 3 AM
     
  4. Djelibeybi

    Djelibeybi Well-Known Member

    Joined:
    Mar 19, 2002
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Ok, I tried that crontab entry and it seemed to reboot my server over and over again from 3am to 4am. :) Not quite what I had in mind. Am I doing something wrong?
     
  5. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    The * 03 * * * means to perform the task every minute for the 3am hour.
    It should be 0 03 * * * which means only at exactly 3am.
     
  6. ptez

    ptez Active Member

    Joined:
    Jun 5, 2003
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    How about put it under /etc/cron.daily ?

    cPanel.net Support Ticket Number:
     
  7. compunet2

    compunet2 Well-Known Member

    Joined:
    Feb 21, 2003
    Messages:
    310
    Likes Received:
    0
    Trophy Points:
    16
    Just curious.... is there some reason you want your server to auto-reboot?

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page