Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Shut down server

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

  1. GoWilkes

    GoWilkes Well-Known Member

    Joined:
    Sep 26, 2006
    Messages:
    397
    Likes Received:
    5
    Trophy Points:
    168
    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:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Put it to bed with this:
    Google to find out more about this:
    shutdown command linux
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. GoWilkes

    GoWilkes Well-Known Member

    Joined:
    Sep 26, 2006
    Messages:
    397
    Likes Received:
    5
    Trophy Points:
    168
    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:
    575
    Likes Received:
    20
    Trophy Points:
    93
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice