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.

Shut down server

Discussion in 'General Discussion' started by GoWilkes, Mar 27, 2014.

  1. GoWilkes

    GoWilkes Well-Known Member

    Joined:
    Sep 26, 2006
    Messages:
    367
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I'm getting ready to permanently take my old server offline, but want to do a test run to make sure there aren't any problems with the new server.

    How do I shut it down without it restarting?

    I found this command in older threads:

    service chkservd stop

    But all I get from that is that chkservd is not found. I tried

    service cpanel stop

    Which worked fine at first, but then it restarted itself shortly thereafter.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Put it to bed with this:
    Google to find out more about this:
    shutdown command linux
     
  3. GoWilkes

    GoWilkes Well-Known Member

    Joined:
    Sep 26, 2006
    Messages:
    367
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Thanks, Info. I had searched before and actually found that command, but since it's a remote server I'm concerned that I'll shut it down, find a problem, and not have a way to turn it back on.

    Is there a way to disable all web access, but still allow SSH?
     
  4. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You could first go into WHM => Service Configuration => Service Manager and uncheck all services (except ssh).
    Then save those settings. This should shutdown all the services (httpd, dovecot, named, exim etc...)

    If after that is done those services are still up, you will then need to shut them all down manually.

    # service httpd stop
    # service exim stop
    # service dovecot stop

    etc...

    They won't restart since you will have disabled them in the Service Manager.
     
Loading...

Share This Page