WHM/CPanel restart whm all services
Restart Services On a cPanel Server - Restart All Service using Command Line

Restart cPanel Service using Command Line

Did some changes on cPanel/WHM configs and want to restart the cPanel Service?
This can be done using a single command from the root user of the WHM Server.
Restarting cPanel will trigger the restart to all the services lik tail watch, MySQL server, etc on cPanel server.

Procedure

  1. Log in to the root of the WHM Server.
  2. Run the following command to restart the cPanel Service.
    :
     service cpanel restart

The above command with restart the cPanel service using terminal.

----------------------------------------------------
Restart cPanel services using the

:
/usr/local/cpanel/scripts/restartsrv script
If a service will not restart from WHM, then you can use the /usr/local/cpanel/scripts/restartsrv service command to attempt to restart the service from the command line. When you run this command, replace service with the correct value for that service, we have included all of the possible services you can
restart with this script below with an example

Restart Apache on a cPanel Server

:
  /usr/local/cpanel/scripts/restartsrv apache
Restart Bind on a cPanel Server

:
  /usr/local/cpanel/scripts/restartsrv bind


Restart cPanels TailWatch log processing service


:
  /usr/local/cpanel/scripts/restartsrv chkservd
Restart ClamAV on a cPanel Server

:
  /usr/local/scpanel/scripts/restartsrv clamd


Restart the cPanel Log Daemon


:
  /usr/local/scpanel/scripts/restartsrv cpanellogd


Restart cPanels WebDav Server


:
  /usr/local/scpanel/scripts/restartsrv cpdavd


Restart cPHulk


:
  /usr/local/scpanel/scripts/restartsrv cphulk


Rebind IPv6 Addresses

Run this script with the list flag to list all of the servers bound IPv6 addresses.

:
  /usr/local/cpanel/scripts/restartsrv cpipv6


Restart cPanels cpsrvd daemon


:
  /usr/local/cpanel/scripts/restartsrv cpsrvd


Restart cPanels crond daemon


:
  /usr/local/cpanel/scripts/restartsrv crond


Restart cPanels dnsadmin daemon


:
  /usr/local/cpanel/scripts/restartsrv dnsadmin


Restart the Dovecot mail server


:
  /usr/local/cpanel/scripts/restartsrv dovecot


Restart the Entropy chat client


:
  /usr/local/cpanel/scripts/restartsrv entropychat


Restart Exim


:
  /usr/local/cpanel/scripts/restartsrv exim


Restart Exim Mail Statistics Tracker


:
  /usr/local/cpanel/scripts/restartsrv eximstats


Restart FTP on a cPanel Server


:
  /usr/local/cpanel/scripts/restartsrv ftpd or ftpserver


Restart the Apache Web Server


:
  /usr/local/cpanel/scripts/restartsrv httpd


Restart IMAP on a cPanel Server


:
  /usr/local/cpanel/scripts/restartsrv imap


Restart inetd (super-server) on a cPanel Server


:
  /usr/local/cpanel/scripts/restartsrv inetd


Restart the IP Address aliasing software


:
  /usr/local/cpanel/scripts/restartsrv ipaliases


Restart the Mailman Server


:
  /usr/local/cpanel/scripts/restartsrv mailman


Restartthe MyDNS Server

:
 
 /usr/local/cpanel/scripts/restartsrv mydns


Restart the MySQL Database Server


:
  /usr/local/cpanel/scripts/restartsrv mysql
Restart the BIND Nameserver Software

:
  /usr/local/cpanel/scripts/restartsrv named


Restart the NSD Nameserver daemon


:
  /usr/local/cpanel/scripts/restartsrv nsd


Restart the Passive OS Fingerprinting Service


:
  /usr/local/cpanel/scripts/restartsrv p0f


Restart the PostgreSQL Database Service


:
  /usr/local/cpanel/scripts/restartsrv postgres or postgresql


Restart the Queueprocd daemon


:
  /usr/local/cpanel/scripts/restartsrv queueprocd


Restart the Open-Source Lod daemon


:
  /usr/local/cpanel/scripts/restartsrv rsyslogd


Restart the Apache Spam Assassin daemon


:
  /usr/local/cpanel/scripts/restartsrv spamd


Restart SSH on a cPanel Server


:
  /usr/local/cpanel/scripts/restartsrv sshd


Restart the Log forwarder daemon


:
  /usr/local/cpanel/scripts/restartsrv syslogd


Restart cPanels TailWatch log processing service


:
 /usr/local/cpanel/scripts/restartsrv tailwatchd 

Restart the Apache Tomcat service 

:
/usr/local/cpanel/scripts/restartsrv tomcat


Restart the Open-Spource Super-Server daemon


:
 /usr/local/cpanel/scripts/restartsrv xinetd
:
https://docs.cpanel.net/whm/scripts/...artsrv-script/
https://docs.cpanel.net/whm/server-s...ervice-status/
https://www.basezap.com/restart-cpan...-command-line/
https://blog.first2host.co.uk/restart-cpanel-services/