From: mcnally@isc.org MIME-Version: 1.0 Subject: dhcpd.conf lease-file-name vs -lf argument Content-Disposition: inline Content-Type: text/plain; charset="utf-8" X-Mailer: MIME-tools 5.508 (Entity 5.508) Date: Fri, 15 Dec 2017 22:04:16 +0000 X-RT-Interface: Web Message-ID: To: dhcp-suggest@isc.org Content-Transfer-Encoding: binary X-RT-Original-Encoding: utf-8 Content-Length: 983 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.