the directory of dhcpd.conf and dhcpd.leases

DA Ming Ming.Da at
Tue Dec 4 03:54:56 UTC 2007

Hello all

I want to change the directory of dhcpd.conf and dhcpd.leases and put
these two files into a customized directory (e.g. /tmp).

I modified the dhcpd.h where Default path to dhcpd config files are

#ifdef DEBUG


#define _PATH_DHCPD_CONF    "/tmp/dhcpd.conf"


#define _PATH_DHCPD_DB        "/ tmp/dhcpd.leases"


#define _PATH_DHCPD_PID       "/ tmp/"



#define _PATH_DHCPD_CONF    "/ tmp/dhcpd.conf"



#ifndef _PATH_DHCPD_DB

#define _PATH_DHCPD_DB        "/ tmp/dhcpd.leases"




#define _PATH_DHCPD_PID       "/ tmp/"



And I copy manually these two files into the folder '/tmp' and delete
them in the folder '/usr/sbin/'. Unfortunately, when I ran the program,
it always said that dhcpd.conf and dhcpd.leases can not be found.

When I copy them back into the '/usr/sbin', the program can run

How could I do to meet my requirements? Which files should be modified?

Thank you for your response to this urgent problem!


Best Regards!


( 25-84731240-5109 / (Alcanet) 2735-5109

Ming.Da at


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the dhcp-users mailing list