DBDIR? (and configure question)

Craig craig5 at pobox.com
Tue Jun 19 22:38:05 UTC 2007


Glenn Satchell wrote:
>> 1) Is there a way to change the location of the lease file via 
>> dhcpd.conf? (Note, the following does NOT work:
...
> try it with quotes around the string:
...
> And the dhcpd man page has an option for changing the lease file name:

Perfect. Thanx!

>> 2) How do you change the location at build/compile time?
>> (I don't see anything in the configure script.) Do you just set an env 
>> var called "DBDIR"?
> 
> You can edit includes/site.h and change the definition, or
> create a file called site.conf in the top level. Here's the one

Ah.. missed that.

> CC = gcc -O -D_PATH_DHCPD_PID=\"/var/run/dhcpd.pid\" \ 
> -D_PATH_DHCPD_DB=\"/var/dhcp/dhcpd.leases\" \ 
> -D_PATH_DHCPD_CONF=\"/usr/local/etc/dhcpd.conf\"

Hmm... not sure if you meant this *exactly* as you wrote or not, but the 
line continuation (\) didn't work. (*NOT* a big deal. :> Put it all on 
one line and it's all good.)

> The different unix/linux distributions choose a variety of compile
> options to suit their desired behaviour. The defaults are those that
> seem sensible for most systems.

Saw that. I got used to "./configure" meaning autoconf. So, I was a 
little confused when "./configure --prefix=abc" didn't work. :)



More information about the dhcp-users mailing list