A volte, potresti voler riavviare i servizi (come exim, httpd ecc.) sul tuo server web cPanel.
cPanel consiglia per CentOS 7 per usare un comando come:
systemctl [restart|start|stop|status] service-name.service
Esempio 1. Verifica lo stato del server Exim:
root@web [~]# systemctl status exim.service
* exim.service - Exim is a Mail Transport Agent, which is the program that moves mail from one machine to another.
Loaded: loaded (/etc/systemd/system/exim.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2017-05-01 07:51:39 EDT; 1 months 7 days ago
Main PID: 12081 (exim)
CGroup: /system.slice/exim.service
`-12081 /usr/sbin/exim -bd -q60m -oP /var/spool/exim/exim-daemon.pid
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
root@web [~]#
Esempio2. Riavvia il server Exim:
root@web [~]# systemctl restart exim.service
root@web [~]#
Nota che non verrà visualizzato alcun output se tutto è a posto.
I servizi cPanel comunemente usati sono:
httpd
es
puro-ftpd
di nome
colombaia
cphulkd
ssh
mysql
cpannellogd
crond
cpannello
Se preferisci, puoi riavviare i servizi comuni tramite WHM:
1. Accedi al tuo WHM conto
2. Vai a Riavvia i servizi .
3. Fare clic sull'icona del servizio che si desidera riavviare
4. Fare clic su Sì quando WHM chiederà Sei sicuro di voler riavviare questo servizio?
5. Verrà visualizzato un breve registro di riavvio. Controlla eventuali messaggi di errore/avviso.
Waiting for ftpserver to restart.........finished.
pure-ftpd (pure-ftpd (PRIV)) running as root with PID 4062 (process table check method)
pure-authd (/usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/local/cpanel/bin/pureauth) running as root with PID 4050 (pidfile check method)
ftpserver started ok