NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/57727: dhcpcd exits after a few days



The following reply was made to PR bin/57727; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: David Brownlee <abs%absd.org@localhost>
Cc: gnats-bugs%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: bin/57727: dhcpcd exits after a few days
Date: Tue, 28 Nov 2023 03:13:39 +0700

     Date:        Mon, 27 Nov 2023 18:15:57 +0000
     From:        David Brownlee <abs%absd.org@localhost>
     Message-ID:  <CAGN_6pZ+CrRzkNSzY735rXQf-pOwyN386XvrDHY2pSgOV8Gkgg%mail.gmail.com@localhost>
 
 
   | Checking on a system where dhcpcd has exited - there does not appear
   | to be any files in /var/run/dhcpcd
 
 Yes, that's what I was expecting from the error you sent
 
   | - though there are two directories
   | and a selection of files in /var/db/dhcpcd, including lease files for
   | interfaces not in this system
 
 Yes, stale stuff there will hang around forever - just in case that
 old hardware comes back...   The occasional cleanup doesn't hurt, and
 clearly you can remove it all (nothing gets installed there in a new
 installation after all) but in general files from /var/db shouldn't be
 arbitrarily removed, not even after reboots.
 
   | srw-rw----  1 root  wheel    0 Nov 27 18:12 /var/run/dhcpcd/sock
   | srw-rw-rw-  1 root  wheel    0 Nov 27 18:12 /var/run/dhcpcd/unpriv.sock
 
 Those two (or at least one of them) missing was the source of the errors.
 They should remain as long as dhcpcd is running (so should the rest of them,
 but those are the ones that are most likely to be noticed).
 
   | Will check back in a few days to see if the issue reoccurs.
 
 You might want to check crontab - make sure there's nothing there being
 a bit brutal with old files in /var/run (it is like /tmp when the system
 boots, but not while it remains running).
 
 On my system:
 
 jacaranda$ ls -l /var/run/dhcpcd
 total 2
 drwxr-xr-x  3 root  wheel  512 Nov 28 03:08 hook-state
 -rw-r--r--  1 root  wheel    6 Nov  4 15:59 pid
 srw-rw----  1 root  wheel    0 Nov  4 15:59 sock
 srw-rw-rw-  1 root  wheel    0 Nov  4 15:59 unpriv.sock
 
 Those files might look to be many weeks old, but they're still all needed.
 
 kre
 


Home | Main Index | Thread Index | Old Index