Bug 39626 - DHCPD RPM missing file
Summary: DHCPD RPM missing file
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: dhcp
Version: 7.1
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Elliot Lee
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2001-05-08 12:11 UTC by Allen Barnett
Modified: 2007-04-18 16:33 UTC (History)
0 users

Clone Of:
Last Closed: 2001-07-16 13:36:36 UTC

Attachments (Terms of Use)

Description Allen Barnett 2001-05-08 12:11:07 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.2-2 i686)

Description of problem:
Line #20 of /etc/rc.d/init.d/dhcpd expects to find an existing file named
/var/lib/dhcp/dhcpd.leases. However, the RPM package does not either
contain or create such a file, so, you cannot start DHCPD with 'service
dhcpd start' until the file is present. (Since this file is controlled by
the daemon itself, i.e., it is not a user configuration file, I'm not sure
why the init script cares about its existence anyway?)

How reproducible:

Steps to Reproduce:
1. Install dhcp-2.0pl5-4 on a clean system
2. execute 'service dhcpd start'

Actual Results:  DHCPD did not start.

Expected Results:  DHCPD should have started.

Additional info:

Comment 1 Michael Schwendt 2001-07-02 01:54:59 UTC
AFAIK, you are expected to configure the daemon properly before starting it.
This includes dhcpd.conf and an initial leases database (whether empty or not).
The package doesn't ship with a default configuration, so no one would manage to
start an incompletely configured dhcpd which might cause network trouble. The
init script checks existence of dhcpd.leases because dhcpd would fail to start
if that file were not present (see man dhcpd.leases).

Comment 2 Allen Barnett 2001-07-02 12:10:53 UTC
OK. The dhcpd.leases man page is quite clear about what your responsibilities 
are for configuring DHCPD.

Please consider this bug closed, then. Thanks.

Note You need to log in before you can comment on or make changes to this bug.