Chkservd service

Chkservd is a service running on Cpanel servers. It monitors other service, if any of the service that is monitored by chkservd is found down, chkservd will restart the service and notify server admin.

You can enable/disable services to be monitored by going to Service Configuration >> Service Manager in WebHostManager.

Alternatively, you may configure it via back-end.

Configuration files for chkservd can be found in /etc/chkserv.d/.

Open the file /etc/chkserv.d/chkservd.conf,

vi /etc/chkserv.d/chkservd.conf

Add the below line in that file to enable a service.

service_name:1

eg:-

root@server [/etc/chkserv.d]# cat chkservd.conf 
cpanellogd:1
cpsrvd:1
ftpd:1
imap:1
named:1
queueprocd:1

Restart chkservd services,

/scripts/restartsrv chkservd

NOTE: You will also see files like exim,queueprocd,imap, cpsrvd, named etc in the directory/etc/chkserv.d.

root@server [/etc/chkserv.d]# cat ftpd
service[ftpd]=21,QUIT,220,/usr/local/cpanel/scripts/restartsrv_ftpserver,proftpd||pure-ftpd&&pure-authd,root|nobody,220|USER %service_auth_user%|3|PASS %service_auth_pass%|2|QUIT