NetBSD Problem Report #48868
From www@NetBSD.org Wed Jun 4 16:27:30 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 13D62A65F1
for <gnats-bugs@gnats.NetBSD.org>; Wed, 4 Jun 2014 16:27:30 +0000 (UTC)
Message-Id: <20140604162728.88951A65F4@mollari.NetBSD.org>
Date: Wed, 4 Jun 2014 16:27:28 +0000 (UTC)
From: m.ramakers@gmail.com
Reply-To: m.ramakers@gmail.com
To: gnats-bugs@NetBSD.org
Subject: dhcpd.leases does not exist and is not created by dhcpd, causing it fail when started
X-Send-Pr-Version: www-1.0
>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: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Jun 04 16:30:00 +0000 2014
>Closed-Date: Thu Jul 17 07:25:23 +0000 2014
>Last-Modified: Thu Jul 17 07:25:23 +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
>Release-Note:
>Audit-Trail:
From: "S.P.Zeidler" <spz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/48868 CVS commit: src/etc/rc.d
Date: Thu, 17 Jul 2014 07:17:03 +0000
Module Name: src
Committed By: spz
Date: Thu Jul 17 07:17:03 UTC 2014
Modified Files:
src/etc/rc.d: dhcpd
Log Message:
Create the dhcpd.leases file if it doesn't exist already, don't just
warn about it not being there.
Closes PR misc/48868
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/etc/rc.d/dhcpd
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: spz@NetBSD.org
State-Changed-When: Thu, 17 Jul 2014 07:25:23 +0000
State-Changed-Why:
requested change was applied
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.