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: David Brownlee <abs%absd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: bin/57727: dhcpcd exits after a few days
Date: Mon, 27 Nov 2023 18:15:57 +0000

 On Mon, 27 Nov 2023 at 11:55, Robert Elz <kre%munnari.oz.au@localhost> wrote:
 >
 > The following reply was made to PR bin/57727; it has been noted by GNATS.
 >
 > From: Robert Elz <kre%munnari.OZ.AU@localhost>
 > To: gnats-bugs%netbsd.org@localhost
 > Cc:
 > Subject: Re: bin/57727: dhcpcd exits after a few days
 > Date: Mon, 27 Nov 2023 18:51:48 +0700
 >
 >  Is it possible you have something which indiscriminately leans
 >  "old" fies in /var/run?
 >
 >  If so, stop it, and try again - except at boot time, files in
 >  /var/run should be left alone ... if you have added soething there
 >  which needs clening, do that, but not any of the normal system
 >  added files (such as those in /var/run/dhcpcd/* - which it looks
 >  like some of have gone missing on your system).
 
 Checking on a system where dhcpcd has exited - there does not appear
 to be any files in /var/run/dhcpcd - though there are two directories
 and a selection of files in /var/db/dhcpcd, including lease files for
 interfaces not in this system (software and hardware have been
 upgraded a number of times).
 
 # find /var/*/dhcpcd | xargs ls -ld
 drwxr-xr-x  2 root  wheel  512 Oct 30 17:46 /var/chroot/dhcpcd
 drwxr-x---  2 root  wheel  512 Oct 30 17:46 /var/db/dhcpcd
 -rw-r-----  1 root  wheel  304 Nov 25 13:18 /var/db/dhcpcd/bge0.lease
 -rw-r--r--  1 root  wheel   42 Apr 28  2016 /var/db/dhcpcd/duid
 -r--r--r--  1 root  wheel  308 May 17  2022 /var/db/dhcpcd/re0.lease
 -r--------  1 root  wheel  192 Apr 18  2020 /var/db/dhcpcd/secret
 -r--r--r--  1 root  wheel  302 Aug  9  2011 /var/db/dhcpcd/wm0.lease
 drwxr-xr-x  3 root  wheel  512 Nov 25 18:24 /var/run/dhcpcd
 drwxr-xr-x  4 root  wheel  512 Nov 25 13:18 /var/run/dhcpcd/hook-state
 drwxr-xr-x  2 root  wheel  512 Nov  1 20:34 /var/run/dhcpcd/hook-state/ntp.conf
 drwxr-xr-x  2 root  wheel  512 Nov  1 20:34 /var/run/dhcpcd/hook-state/roaming
 
 I've saved a copy of them, then "rm -rf /var/run/dhcpcd
 /var/db/dhcpcd" and restarted dhcpcd
 
 # find /var/*/dhcpcd | xargs ls -ld
 drwxr-xr-x  2 root  wheel  512 Oct 30 17:46 /var/chroot/dhcpcd
 drwxr-x---  2 root  wheel  512 Nov 27 18:13 /var/db/dhcpcd
 -rw-r-----  1 root  wheel  304 Nov 27 18:13 /var/db/dhcpcd/bge0.lease
 drwxr-xr-x  3 root  wheel  512 Nov 27 18:13 /var/run/dhcpcd
 drwxr-xr-x  3 root  wheel  512 Nov 27 18:13 /var/run/dhcpcd/hook-state
 drwxr-xr-x  2 root  wheel  512 Nov 27 18:13 /var/run/dhcpcd/hook-state/ntp.conf
 -rw-r--r--  1 root  wheel    6 Nov 27 18:12 /var/run/dhcpcd/pid
 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
 
 Will check back in a few days to see if the issue reoccurs.
 
 Thanks
 
 David
 


Home | Main Index | Thread Index | Old Index