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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Scheduling an automatic graceful reboot

Discussion in 'General Discussion' started by m4f1aboy, Mar 8, 2017.

  1. m4f1aboy

    m4f1aboy Member

    Joined:
    Feb 5, 2015
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    From time to time you have to reboot the server after kernel updates. Is there a way to schedule a one-time graceful reboot of the server for a specific time rather than staying up late at night to manually login and trigger the reboot? This would be a nonrecurring reboot.
     
  2. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    907
    Likes Received:
    13
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Rebooting can be a stressful time for many system admins, you keep your fingers crossed its going to come back up without error so leaving this to a one off cron job while your not present is enough to keep you up all night ;)
    You might want to look at the KernelCare solution: CloudLinux - Main | New template
     
  3. vacancy

    vacancy Well-Known Member

    Joined:
    Sep 20, 2012
    Messages:
    140
    Likes Received:
    14
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    The healthiest method is to use KernelCare.

    Without the need to restart the system, your kernel will stay up to date with zero interruption.

    If you do not want to use it, you can prepare a cron to restart the server every month.

    Kernel updates are usually issued every 1-2 months. (changeable)

    The update will not be active momentarily. The only negative side is this.
     
  4. webhostuk

    webhostuk Well-Known Member

    Joined:
    Sep 11, 2013
    Messages:
    112
    Likes Received:
    11
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    We use Ksplice does kernal upgrade without the need of reboot , I guess thats a good option if your concern is just about kernel upgrade.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,419
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I agree with the previous posts. An unattended reboot is generally not a good idea, as you always want to make sure the system successfully boots again. Kernel Care is a useful third-party solution if you'd like to avoid reboots when upgrading a kernel:

    CloudLinux - Main | New template

    Thank you.
     
  6. m4f1aboy

    m4f1aboy Member

    Joined:
    Feb 5, 2015
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Thanks for the information, it is greatly appreciated. It wouldn't be an unattended reboot; I have software that emails me alerts when the server goes down and when it comes back online, so if it doesn't come back online I can remote in and manually boot it up. It is aimed more towards me scheduling it so I don't forget to reboot late at night when needed. Thanks again, cheers.
     
    cPanelMichael likes this.
Loading...

Share This Page