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.

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:
    1
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    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.
     
  3. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    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/
     
Loading...

Share This Page