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
[SOLVED] Issue with chkservd
-
- Junior Member
- Posts: 9
- Joined: 25 Jun 2015, 10:22
[SOLVED] Issue with chkservd
Last edited by armitage318 on 31 Mar 2016, 16:09, edited 1 time in total.
-
- Moderator
- Posts: 1524
- Joined: 01 Oct 2008, 09:24
Re: Issue with chkservd
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.
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.
-
- Junior Member
- Posts: 9
- Joined: 25 Jun 2015, 10:22
Re: Issue with chkservd
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!
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!
-
- Moderator
- Posts: 1524
- Joined: 01 Oct 2008, 09:24
Re: Issue with chkservd
Then it would suggest that csf.conf has been corrupted somehow. You should have an option in it with:
If that is not there, add it and then run the following to generate a complete configuration file:
Code: Select all
GENERIC = "1"
Code: Select all
csf -uf