LFD Stopping with PID Mismatch

Post Reply
tmorton
Junior Member
Posts: 2
Joined: 17 Jun 2013, 00:19

LFD Stopping with PID Mismatch

Post by tmorton »

Hello,

I have CSF on a cPanel server, and two times within the past two weeks I've received an email from the cPanel Service Monitor saying that LFD had stopped and had been restarted. I checked /var/log/lfd.log and found this:

Code: Select all

Jun 16 14:46:21 gerald lfd[32359]: *SSH login* from X into the Y account using publickey authentication
Jun 16 15:16:27 gerald lfd[1259]: *SSH login* from X into the Y account using publickey authentication
Jun 16 15:46:28 gerald lfd[1901]: *SSH login* from X into the Y account using publickey authentication
Jun 16 16:02:33 gerald lfd[26029]: *Error* pid mismatch or missing, at line 825
Jun 16 16:02:33 gerald lfd[26029]: daemon stopped
Jun 16 16:05:50 gerald lfd[3483]: daemon started on Z - csf v6.15 (cPanel)
Jun 16 16:05:50 gerald lfd[3483]: CSF Tracking...
I couldn't find any more information on the error:
Jun 16 16:02:33 gerald lfd[26029]: *Error* pid mismatch or missing, at line 825

Any suggestions for where to look next to determine what caused this? This is on a CentOS VPS with an up-to-date CSF.
Thanks!
- Taj
chatwizrd
Junior Member
Posts: 16
Joined: 30 Apr 2013, 14:51

Re: LFD Stopping with PID Mismatch

Post by chatwizrd »

whats on that line?
tmorton
Junior Member
Posts: 2
Joined: 17 Jun 2013, 00:19

Re: LFD Stopping with PID Mismatch

Post by tmorton »

It looks like it's just part of the main loop. I'm not really sure how such a thing would happen (the PID file would change underneath the running binary), unless the PID file is actually holding the PID for a different process.

Code: Select all

while (1)  {
        $0 = "lfd - processing";
        $maintimer = time;

        seek (PIDFILE, 0, 0);
        my @piddata = <PIDFILE>;
        chomp @piddata;
        if (($pid ne $piddata[0]) or ($pidino ne (stat($pidfile))[1])) {
                &cleanup(__LINE__,"*Error* pid mismatch or missing"); # LINE 825
        }
Post Reply