Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    306
    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:
    151
    I was jus wondering this same thing to,
     
  3. BJMG

    BJMG Active Member

    Joined:
    Jul 24, 2002
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    151
    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:
    306
    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:
    4
    Trophy Points:
    343
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. ptez

    ptez Active Member

    Joined:
    Jun 5, 2003
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    156
    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:
    166
    Just curious.... is there some reason you want your server to auto-reboot?

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice