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!

How many times you restart your service ?

Discussion in 'General Discussion' started by comake, Oct 25, 2006.

  1. comake

    comake Member

    Joined:
    Sep 10, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    Hello,

    I am a beginner with a dedicated server.

    Last weekend, Mysql was down and I should restart it to get it work. (Server was never rebooted since one month)

    I want to know If you restart your server/services every week or every month with a cron job ?
    And what is the command of the cron to do that (whith cpanel or ssh) ?

    For exemple I want to restart Apache and Mysql once time per week?

    thank you
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Unless there's a technical problem there should be no need to restart any services or your server at any interval. Usually, the only reason to reboot a server is if you're performing a kernel upgrade.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    4
    Trophy Points:
    193
    Location:
    Minneapolis, MN
    No, you don't need to restart services, unless they fail for whatever technical reason(s). The command to restart crond service, for example, is:
    /sbin/service crond restart

    A cPanel powered server comes with chkservd application which monitors and restarts services on your server(s). You can enable/disable services to be monitored through the WHM >> Service Configuration >> Service Manager

    In addition, the local path to the configuration files for chkservd is /etc/chkserv.d/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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