GoWilkes

Well-Known Member
Sep 26, 2006
692
33
178
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.
 

GoWilkes

Well-Known Member
Sep 26, 2006
692
33
178
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?
 

cPanelPeter

Senior Technical Analyst
Staff member
Sep 23, 2013
585
25
153
cPanel Access Level
Root Administrator
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.