I posted a patch that fixes the error message here:
viewtopic.php?f=4&t=10879
Note: As LFD is not supposed to start in TESTING mode, this patch only fixes the error message to report the correct, more meaningful, error.
Search found 6 matches
- 24 Jun 2018, 21:07
- Forum: General Discussion (csf)
- Topic: lfd unable to start
- Replies: 5
- Views: 4751
- 24 Jun 2018, 21:04
- Forum: Suggestions (csf)
- Topic: lfd incorrectly attempts to close and unlink pid file in TESTING mode
- Replies: 1
- Views: 3720
Re: lfd incorrectly attempts to close and unlink pid file in TESTING mode
--- lfd 2018-06-24 20:02:30.524696331 +0000 +++ lfd.patched 2018-06-24 20:02:15.830848692 +0000 @@ -7183,8 +7183,11 @@ } logfile("daemon stopped"); - close($PIDFILE); - unlink $pidfile; + # If PIDFILE is not defined then LFD is not started (TESTING mode?) + if ( defined($PIDFILE) ) { + cl...
- 24 Jun 2018, 20:49
- Forum: General Discussion (csf)
- Topic: lfd unable to start
- Replies: 5
- Views: 4751
Re: lfd unable to start
@Sopor, even without LFD running, you can still test the firewall as csf is enabled along with are the iptables rules.
- 24 Jun 2018, 20:48
- Forum: General Discussion (csf)
- Topic: lfd unable to start
- Replies: 5
- Views: 4751
Re: lfd unable to start
Opened bug report against lfd:
viewtopic.php?f=4&t=10879
viewtopic.php?f=4&t=10879
- 24 Jun 2018, 20:47
- Forum: Suggestions (csf)
- Topic: lfd incorrectly attempts to close and unlink pid file in TESTING mode
- Replies: 1
- Views: 3720
lfd incorrectly attempts to close and unlink pid file in TESTING mode
Attempting to start LFD while in TESTING mode does not report the correct error "*Error* lfd will not run with TESTING enabled in /etc/csf/csf.conf". Instead, /usr/sbin/lfd attempts to close and unlink the $pidfile /var/run/lfd.pid using an undefined file handle $PIDFILE at line 7186. This...
- 24 Jun 2018, 20:42
- Forum: General Discussion (csf)
- Topic: lfd unable to start
- Replies: 5
- Views: 4751
Re: lfd unable to start
I agree that there is an error in the source code as lfd should fail reporting "Error* lfd will not run with TESTING enabled in /etc/csf/csf.conf" rather than attempting to start and failing when it tries to close and unlink the /var/run/lfd.pid file. Bug aside, LFD will not run when TESTI...