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.

restarting services

Discussion in 'General Discussion' started by blaze64, Dec 18, 2003.

  1. blaze64

    blaze64 Well-Known Member

    Joined:
    Feb 5, 2003
    Messages:
    159
    Likes Received:
    0
    Trophy Points:
    16
    Does anyone know where the command files are that attempt to automatically restart a service that has died? You know the one that sends out the email "Apache failed... an attempt was made to restart the service..."

    And part 2 of this question is it safe to modify that file? I need it to kill all processes and then attempt the restart of the downed service. Anyway.. anyone know?

    THANKS!
     
  2. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    type service as root you get
    /sbin/service httpd restart

    or one might

    /etc/init.d/httpd restart

    or something like
    /etc/init.d/named restart

    hope this helps.
     
  3. Hoss

    Hoss Active Member

    Joined:
    Oct 15, 2002
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    It should be in this file m8

    chkservd

    This is also the command you use for stopping & starting that service.
    i.e. you want to shut down mysql for maintenance and not have it auto re-start while your working

    /etc/init.d/chkservd stop

    /etc/init.d/mysql stop


    Now whether you want to edit that file or can safely I cannot say?
     
  4. Luke87

    Luke87 Member

    Joined:
    Dec 16, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    I just use /usr/local/apache/bin/apachectl restart
     
  5. jphilipson

    jphilipson Well-Known Member

    Joined:
    Jan 8, 2003
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    Think ya'll missed the point... the restart config scripts are in /etc/chkserv.d/
     
Loading...

Share This Page