Page 1 of 1

[SOLVED] Issue with chkservd

Posted: 31 Mar 2016, 11:46
by armitage318
Hi,
I am unable to start csf, I get this error:

# /etc/init.d/csf start
Starting csf:You have an unresolved error when starting csf:
Error: Could not open /etc/chkserv.d/chkservd.conf: No such file or directory, at line 2689 in /usr/sbin/csf

You need to restart csf successfully to remove this warning, or delete /etc/csf/csf.error
[ OK ]

I have no such file/directory at all:

# stat /etc/chkserv.d/chkservd.conf
^[[Astat: cannot stat `/etc/chkserv.d/chkservd.conf': No such file or directory

# stat /etc/chkserv.d/
stat: cannot stat `/etc/chkserv.d/': No such file or directory

This is NOT a cPanel, I am using CentOS 6.7.

I already removed /etc/csf/csf.error, but this problem happened again.

How can I solve it?
thank you

Re: Issue with chkservd

Posted: 31 Mar 2016, 12:04
by ForumAdmin
that would suggest that you have installed csf incorrectly or that you have either copied a csf.conf from a cPanel server or /usr/local/cpanel/version exists on the server as you are missing having the GENERIC option set.

I'd suggest that you uninstall csf and reinstall afresh and ensure that you follow the instructions for installation and do not copy any files from elsewhere.

Re: Issue with chkservd

Posted: 31 Mar 2016, 12:16
by armitage318
Hi, csf worked fine until some days ago (I just added some RPM packages to install OpenLiteSpeed).
I have no /usr/local/cpanel/version file on this system.
I didn't copy /etc/csf/csf.conf from another server. I edited the original one.
How can I set "GENERIC" option?
Thankyou!

Re: Issue with chkservd

Posted: 31 Mar 2016, 12:19
by ForumAdmin
Then it would suggest that csf.conf has been corrupted somehow. You should have an option in it with:

Code: Select all

GENERIC = "1"
If that is not there, add it and then run the following to generate a complete configuration file:

Code: Select all

csf -uf

Re: Issue with chkservd

Posted: 31 Mar 2016, 16:09
by armitage318
Thank you