Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2006
    Posts
    17

    Default How many times you restart your service ?

    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. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by comake View Post
    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) ?
    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/
    Andy Reed
    RHCE and CCNA
    ServerTune.com

Similar Threads & Tags
Similar threads

  1. Why to restart bind service?
    By meghraj in forum New User Questions
    Replies: 0
    Last Post: 09-10-2007, 07:45 AM
  2. restart email service
    By ljwhite in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 03-20-2006, 10:19 PM
  3. service cpanel restart...
    By Sinewy in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 06-30-2005, 11:47 AM
  4. Restart service?
    By kidd0 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-12-2003, 07:04 AM
  5. restart service error
    By Nick V/D Bri in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-08-2003, 11:06 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube