include statement

Michael michael at
Mon Dec 18 21:41:58 UTC 2006

Hai Tao wrote:
> how can I know if it runs in a chroot'ed environment?
> Michael <michael at> wrote:  Hai Tao wrote:

I don't know for sure on SLES 10.  However, on SLES 9, the configuration 
for DHCPD is in /etc/sysconfig/dhcpd.  In that file is a section like:

## Type:        yesno
## Default:     yes
## ServiceRestart: dhcpd
# Shall the DHCP server dhcpd run in a chroot jail (/var/lib/dhcp)?
# Each time you start dhcpd with the init script, /etc/dhcpd.conf will
# be copied to /var/lib/dhcp/etc/.
# Some files that are important for hostname to IP address resolution
# (/etc/{hosts,host.conf,resolv.conf,localtime}, /lib/,
# /lib/ will also be copied to the chroot jail by the
# init script when you start it (about 100kB altogether).
# The pid file will be in /var/lib/dhcp/var/run/

So in this situation, your include would have to be below /var/lib/dhcp 
and the path would have to be relative to it. 

For example, if your include file is /var/lib/dhcp/etc/include, then the 
dhcpd.conf file would include /etc/include.


More information about the dhcp-users mailing list