Terkadang, Anda mungkin ingin memulai ulang layanan (seperti exim, httpd, dll.) di server web cPanel Anda.
cPanel merekomendasikan untuk CentOS 7 untuk menggunakan perintah seperti:
systemctl [restart|start|stop|status] service-name.service
Contoh1. Periksa status 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 [~]#
Contoh2. Mulai ulang server Exim:
root@web [~]# systemctl restart exim.service
root@web [~]#
Perhatikan bahwa tidak ada output yang akan ditampilkan jika semuanya baik-baik saja.
Layanan cPanel yang umum digunakan adalah:
httpd
exim
ftpd murni
bernama
tempat perlindungan merpati
cpulkd
sshd
mysql
cpanellogd
crond
cpanel
Jika mau, Anda dapat memulai ulang layanan umum melalui WHM:
1. Masuk ke WHM . Anda akun
2. Navigasikan ke Mulai Ulang Layanan .
3. Klik ikon layanan yang ingin Anda mulai ulang
4. Klik tombol Ya tombol ketika WHM akan bertanya Apakah Anda yakin ingin memulai kembali layanan ini?
5. Anda akan melihat log restart singkat. Periksa pesan kesalahan/peringatan.
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