From: | mcnally@isc.org |
Subject: | dhcpd.conf lease-file-name vs -lf argument |
Date: | Fri, 15 Dec 2017 22:04:16 +0000 |
To: | dhcp-suggest@isc.org |
A customer asked:
> Dhcpd documentation states that the 'lf' argument takes precedence over > the 'lease-file-name' configuration option.
> However, that doesn't seem to be correct.
>
> From man pages:
> "Furthermore, it has no effect if overridden by the -lf flag or the
> PATH_DHCPD_DB environment variable."
>
> From the code, the lease-file-name option is evaluated in
> postconf_initialization() after the arguments are processed and
> path_dhcpd_db will end up with the value defined in the option.
>
> What should be the correct expected behavior?
Probably the correct behavior was meant to be as documented,
but given that many releases have taken place without
correcting the undocumented behavior, perhaps we should leave
as is as correct the documentation at this point.
Per support ticket #12117 that would be acceptable to the
customer. So.. can we update the documentation to match
the code's behavior?
-mcnally.