Cant open pid when restarting LFD

1 post Page 1 of 1
HollyRidge
Junior Member
Posts: 7
Joined: 19 Jan 2012, 15:13


I have reviewed some of the other posts, particularly the one listed below and tried that solution but it did not resolve it. I have been able to duplicate this issue on 2 Webmin servers and a DNS CPanel server. See the notes along with the information to explain and break it down.

https://forum.configserver.com/viewtopi ... =4&t=11485 <<-- Did not fix it

The error is...

Can't open PID file /run/lfd.pid (yet?) after start: No such file or directory
Code: Select all
## CSF VERSION 13.08 ON CPANEL (THIS IS DNS ONLY SERVER, HAVE DUPLICATED IT ON 2X WEBMIN SERVERS TOO, MY FULL CPANEL IT WORKS FINE ON WHICH IS ALSO 13.08)...

[root@host ~]# csf --version
csf: v13.08 (cPanel)
[root@host ~]#


## PID EXISTS

[root@host ~]# ls -lah /run/lfd.pid
-rw------- 1 root root 5 Nov 29 20:29 /run/lfd.pid
[root@host ~]#


## TRY TO RESTART AND GIVES THE PID ERROR WHEN STARTING

[root@host ~]# csf --lfd restart
? lfd.service - ConfigServer Firewall & Security - lfd
   Loaded: loaded (/usr/lib/systemd/system/lfd.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/lfd.service.d
           +-override.conf
   Active: active (running) since Fri 2019-11-29 20:36:20 UTC; 17ms ago
  Process: 6120 ExecStart=/usr/sbin/lfd (code=exited, status=0/SUCCESS)
 Main PID: 6138 (lfd - starting)
   CGroup: /system.slice/lfd.service
           +-6138 lfd - startin

Nov 29 20:36:19 host.domain.com systemd[1]: lfd.service: main process exited, code=killed, status=9/KILL
Nov 29 20:36:19 host.domain.com systemd[1]: Stopped ConfigServer Firewall & Security - lfd.
Nov 29 20:36:19 host.domain.com systemd[1]: Unit lfd.service entered failed state.
Nov 29 20:36:19 host.domain.com systemd[1]: lfd.service failed.
Nov 29 20:36:19 host.domain.com systemd[1]: Starting ConfigServer Firewall & Security - lfd...
Nov 29 20:36:20 host.domain.com systemd[1]: Can't open PID file /run/lfd.pid (yet?) after start: No such file or directory
Nov 29 20:36:20 host.domain.com systemd[1]: Started ConfigServer Firewall & Security - lfd.
[root@host ~]#


## BUT AS YOU CAN SEE, EVEN THOUGH IT GAVE THE ERROR, THE FILE IS THERE..

[root@host ~]# ls -lah /run/lfd.pid
-rw------- 1 root root 5 Nov 29 20:36 /run/lfd.pid
[root@host ~]#


## OK, LETS STOP IT TO SEE IF THE FILE IS REMOVED...

[root@host ~]# csf --lfd stop
[root@host ~]#


## THE PID IS REMOVED AS YOU CAN SEE BELOW SO THE STOP COMMAND REMOVED IT

[root@host ~]# ls -lah /run/lfd.pid
ls: cannot access /run/lfd.pid: No such file or directory
[root@host ~]#


## LETS JUST RUN A START NOW, AS YOU CAN SEE IF GIVES THE PID ERROR AGAIN...

[root@host ~]# csf --lfd start
? lfd.service - ConfigServer Firewall & Security - lfd
   Loaded: loaded (/usr/lib/systemd/system/lfd.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/lfd.service.d
           +-override.conf
   Active: active (running) since Fri 2019-11-29 20:36:53 UTC; 17ms ago
  Process: 6187 ExecStart=/usr/sbin/lfd (code=exited, status=0/SUCCESS)
 Main PID: 6199 (lfd - starting)
   CGroup: /system.slice/lfd.service
           +-6199 lfd - startin

Nov 29 20:36:52 host.domain.com systemd[1]: Starting ConfigServer Firewall & Security - lfd...
Nov 29 20:36:53 host.domain.com systemd[1]: Can't open PID file /run/lfd.pid (yet?) after start: No such file or directory
Nov 29 20:36:53 host.domain.com systemd[1]: Started ConfigServer Firewall & Security - lfd.
[root@host ~]#


## BUT YOU CAN ALSO SEE THE PID FILE IS BACK...

[root@host ~]# ls -lah /run/lfd.pid
-rw------- 1 root root 5 Nov 29 20:36 /run/lfd.pid
[root@host ~]#
1 post Page 1 of 1