CSF freezing after update

Post Reply
talen-j
Junior Member
Posts: 2
Joined: 11 Apr 2015, 13:44

CSF freezing after update

Post by talen-j »

Hi,

Running Centos 7.1 on my VPS with firewalld disabled and iptables installed. CSF has been working without incident for 5 months until today when an update was available today which I installed.

When trying to restart csf/lfd it freezes at the line below. Although CSF states it is running it is not effective after several tests I did.

Flushing chain `INPUT'
Flushing chain `FORWARD'
Flushing chain `OUTPUT'
Flushing chain `PREROUTING'
Flushing chain `INPUT'
Flushing chain `OUTPUT'
Flushing chain `POSTROUTING'
Flushing chain `INPUT'
Flushing chain `FORWARD'
Flushing chain `OUTPUT'
open3: exec of is-active firewalld failed at /usr/sbin/csf line 625.

I restored my server snapshot, deleted firewalld and completed the update again which made no difference.

On checking line 625 in /usr/sbin/csf (see below) it mentions firewalld.

Code: Select all

my $cmdpid = open3($childin, $childout, $childout, $config{SYSTEMCTL},"is-active","firewalld");
I am a bit confused as CSF does not officially support Centos 7 and as far as I am aware does not work with firewalld (only iptables).

Why is firewalld mentioned in this line if it not supported? Is it safe to delete this line or do I need to avoid the update at the present time.

Thanks for any advice.

Regards,

Talen
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: CSF freezing after update

Post by ForumAdmin »

Check your /etc/csf/csf.conf (near the bottom) and ensure that it has an option set to the correct location of systemctl on your server:

Code: Select all

SYSTEMCTL = "/usr/bin/systemctl"
talen-j
Junior Member
Posts: 2
Joined: 11 Apr 2015, 13:44

Re: CSF freezing after update

Post by talen-j »

Thank you for the quick response and advice. This resolved the problem.

Talen
Post Reply