NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/48868: dhcpd.leases does not exist and is not created by dhcpd, causing it fail when started
>Number: 48868
>Category: misc
>Synopsis: dhcpd.leases does not exist and is not created by dhcpd,
>causing it fail when started
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Jun 04 16:30:00 +0000 2014
>Originator: Michai Ramakers
>Release: 6.1.3
>Organization:
>Environment:
NetBSD main.LAN 6.1.3 NetBSD 6.1.3 (GENERIC) i386
>Description:
In a stock install, /var/db/dhcpd.leases is not present, and is not created
from /etc/rc.d/dhcpd (for instance).
This causes dhcpd not to run, when enabling it in rc.conf.
I guess this is a design decision; the obvious thing to do is to touch
/var/db/dhcpd.leases, and indeed this behaviour is documented in
dhcpd.leases(5).
However, it may cause unnecessary confusion for new users when enabling dhcpd
with a valid config-file, and perhaps it is acceptable to let /etc/rc.d/dhcpd
touch the leases-file if it didn't yet exist.
>How-To-Repeat:
1) install clean 6.1.3
2) create a valid /etc/dhcpd.conf
3) enable dhcpd in /etc/rc.conf: 'dhcpd=YES'
4) start dhcpd: '/etc/rc.d/dhcpd start'
5) dhcpd does not run
>Fix:
# touch /var/db/dhcpd.leases
Home |
Main Index |
Thread Index |
Old Index