wonderwall wrote:I have installed the csf plugin for Directadmin on a server running the fairly new and shiny Centos 7. The script as such in functioning well, but in Directadmin's service monitor, the process shows up using 0 memory and cannot be (re)started or stopped.
I'm running Centos7 / DirectAdmin and csf/lfd as well and run into simular problems.
DA service monitor always shows the below, whether lfd is running or not:
Code: Select all
Service Status Memory Usage Start Stop Restart Reload
lfd lfd (pid 1234) 0 B Start Stop Restart Reload
Perhaps this provides some inside on what is going on on a Centos7 machine.
Code: Select all
# service lfd restart
Redirecting to /bin/systemctl restart lfd.service
# service lfd status
Redirecting to /bin/systemctl status lfd.service
lfd.service - ConfigServer Firewall & Security - lfd
Loaded: loaded (/usr/lib/systemd/system/lfd.service; enabled)
Active: active (running) since Sun 2015-02-08 12:20:04 CET; 17min ago
Process: 2345 ExecStart=/usr/sbin/lfd (code=exited, status=0/SUCCESS)
Main PID: 3456(lfd - sleeping)
CGroup: /system.slice/lfd.service
└─3456lfd - sleeping
Feb 08 12:20:04 xxx systemd[1]: Starting ConfigServer Firewall & Security - lfd...
Feb 08 12:20:04 xxx systemd[1]: Started ConfigServer Firewall & Security - lfd.
I need to restart lfd from root with service lfd restart because when I change the firewall configuration of csf/lfd within the DA user interface LFD won't start. Also a lfd restart from the DA csf/lfd ui does not work.