lfd is the config server firewall (csf) daemon. In my case it happened that lfd crashed because of no memory and it was not restarted:
tail /var/log/lfd.log
In case of a cPanel/WHM server, tell the server to check the lfd service and restart it if needed:*Error* cannot fork: Cannot allocate memory, at line 3318
daemon stopped
WHM » Service Configuration »Service Manager and check if you can enable "lfd" here. If its not here, one can do following commands via Linux command line:
First command will add lfd service to the list of services that should be checked/monitored by WHMecho "service[lfd]=x,x,x,/etc/init.d/lfd restart,lfd,root" > /etc/chkserv.d/lfd
echo "lfd:1" >> /etc/chkserv.d/chkservd.conf
Second command will enable monitoring of the lfd service
-----
custom non-cpanel way of checking & restarting
I think this may work to check if lfd process is running and if not, it will restart csf+lfd:
run:
paste on new line:crontab -e
save* * * * * if [ "$(ps ax|grep lfd|grep -v grep|wc -l)" == "0" ];then csf -ra;fi 1>/dev/null
Bookmarks