[Bug 247562] dhclient: service script does not create missing piddir
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jun 26 13:15:46 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247562
Bug ID: 247562
Summary: dhclient: service script does not create missing
piddir
Product: Base System
Version: 12.1-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: misc
Assignee: bugs at FreeBSD.org
Reporter: walter.von.entferndt at posteo.net
Created attachment 215957
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=215957&action=edit
patch for /etc/rc.d/dhclient (FreeBSD-12.1-RELEASE)
I consider it good practice to have /var/run on a small tmpfs. The side effect
is that this is empty after every reboot. The advantage is that this unveils
bugs otherwise undetected.
Like some port's service scripts, dhclient's /etc/rc.d/dhclient does not check
for the existence of it's piddir, and fails to work correctly if it does not
exist.
Many users who run into this bug will create the missing directory manually and
not report it...
Suggestion:
1. since I encountered this kind of bug from time to time, I'd like to suggest
to add to rc.subr the functionality to create $required_dirs and set
$xxx_dir_mode and $xxx_dir_owner (should understand owner:group syntax).
2. /etc/rc should check /var on startup against the mtree file and create
missing directories.
The patch appended is against 12.1-RELEASE, and was produced with "patch -U 7"
from the root directory.
Thx.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list