Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member shanit's Avatar
    Join Date
    Dec 2005
    Posts
    46

    Question restart services

    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. #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

    Yes, you can. cPanel provide various scripts for restarting different services safely /scripts/restartsrv_*
    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
    Member
    Join Date
    Oct 2003
    Location
    Dickson City, Pennsylvania (USA)
    Posts
    48

    Default

    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
    ^--- I wrote that.
    http://www.parasane.net/
    <plug shame="no">
    We also offercPanel/WHM hosting plans that include full PHP text-to-speech technology
    We created it so that you can play with it!
    </plug>

  4. #4
    Member WebScHoLaR's Avatar
    Join Date
    Dec 2005
    Location
    Planet Earth
    Posts
    504

    Default

    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. #5
    Member
    Join Date
    Oct 2003
    Location
    Dickson City, Pennsylvania (USA)
    Posts
    48

    Default

    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.
    ^--- I wrote that.
    http://www.parasane.net/
    <plug shame="no">
    We also offercPanel/WHM hosting plans that include full PHP text-to-speech technology
    We created it so that you can play with it!
    </plug>

  6. #6
    Member WebScHoLaR's Avatar
    Join Date
    Dec 2005
    Location
    Planet Earth
    Posts
    504

    Default

    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. #7
    Member shanit's Avatar
    Join Date
    Dec 2005
    Posts
    46

    Default

    thanks you guys are awesome

Similar Threads & Tags
Similar threads

  1. Restart Services?
    By jhyland87 in forum cPanel Developers
    Replies: 5
    Last Post: 06-24-2009, 01:36 PM
  2. Restart Services - are these all graceful?
    By spaceman in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-12-2007, 05:17 PM
  3. How do you restart services from shell?
    By bjdea1 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-17-2004, 04:15 PM
  4. Restart Services Not Working
    By Lamar in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-29-2003, 04:03 AM
  5. Auto Restart of Services
    By LinuxFreaky in forum cPanel and WHM Discussions
    Replies: 17
    Last Post: 09-11-2002, 01:27 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube