Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89428 - dhcp initscript assumes /var/lib/dhcp/dhcpd.leases for lease file
Summary: dhcp initscript assumes /var/lib/dhcp/dhcpd.leases for lease file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-17 09:46 UTC by Paul Komarek
Modified: 2005-12-07 06:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Komarek 2005-04-17 09:46:41 UTC
It is nice that the initscript will create your lease file for you; I used to muck around with the initscripts to do this myself.  However, this system creates false failures if the lease file is move.

For instance, if /etc/dhcp/dhcpd.conf contains

    lease-file-name "/tmp/dhcpd.lease";
    pid-file-name "/tmp/dhcpd.pid";

(necessarily in the global scope), AND there is no /var/lib/dhcp directory, then the initscript will fail even though nothing is actually wrong.

I don't have a good, simple idea for fixing this.  I suppose you could parse the dhcpd.conf file in the initscript, but that seems unusual.  You could add an option in the conf.d/dhcp file, but the user would have to keep their conf.d/dhcp and dhcpd.conf synchronized.

The best idea I can think of is to use the conf.d/dhcp approach, but with the dhcpd -lf option.  That way the dhcpd.conf file can remain ignorant of the lease configuration, and gentoo can happily verify lease file existence.

-Paul Komarek
Comment 1 Paul Komarek 2005-04-17 09:59:57 UTC
I just noticed that the dhcpd.pid file works the same way as the lease file.  If the lease file becomes changeable, then probably the pid file should, too.

BTW, this sort of thing comes up with embedded systems.  I'm not sure how broad the appeal of this type of feature is.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-12-05 12:31:11 UTC
Mass reassign wrt Bug 23718, maintainer being retired.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-12-07 06:04:51 UTC
Fixed in dhcp-3.0.3-r1