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.

restart services

Discussion in 'General Discussion' started by shanit, Dec 20, 2005.

  1. shanit

    shanit Well-Known Member

    Joined:
    Dec 18, 2005
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    can you restart services that are listed under restart services in whm thru ssh

    or only thru whm

    I am wanting to do restarts thru ssh it seems to be faster when i do anything thru ssh than in whm

    thanks again
    Shannon
     
  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
    Yes, you can. cPanel provide various scripts for restarting different services safely /scripts/restartsrv_*
     
  3. parasane

    parasane Well-Known Member

    Joined:
    Oct 19, 2003
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dickson City, Pennsylvania (USA)
    In general, another easy way is to restard from the init.d directory.

    For example, to reboot Apache (the web server, which is known as httpd), just su - to root and type:

    /etc/init.d/httpd restart

    Another example is Exim....

    /etc/init.d/exim restart


    There are numerous other ways to start, stop, and restart the servers, but the ones Chirpy and I offered are probably the easiest to begin with.

    ~ Dan
     
  4. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    You can simply restart services by

    service servicename stop/start

    e.g

    service httpd stop/start (WebServer Apache)
    service mysql stop/start (MySQL Server)
    service exim stop/start (Mailserver Exim)
    service cpanel stop/start (CPanel)
    service named stop/start (BIND)


    .... and so on
     
  5. parasane

    parasane Well-Known Member

    Joined:
    Oct 19, 2003
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dickson City, Pennsylvania (USA)
    I was going to mention that method, as well, but I figured for someone new to the game it may be easier for them to see a list of services that could be controlled by listing the directory. Still, by you leaving a list like that here, Web, that's a better idea than mine.
     
  6. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    I think its better for the newbie to know how he can stop/start services.As there are three methods mentioned in this thread so its upto him which one he chooses but he must know by now that there are other methods too. :)
     
  7. shanit

    shanit Well-Known Member

    Joined:
    Dec 18, 2005
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    thanks you guys are awesome :)
     
Loading...

Share This Page