dhcp: Changed dhcpd to run in chroot on CentOS/RedHat 6.

This commit is contained in:
Timo Makinen 2015-02-19 15:35:56 +02:00
parent 63b16c07f5
commit e2a674ea06
2 changed files with 8 additions and 2 deletions

View file

@ -0,0 +1,6 @@
<% if @operatingsystemrelease =~ /^6\./ -%>
DHCPDARGS="-chroot ${statedir} -lf /dhcpd.leases -pf /dhcpd.pid <%= @dhcp_server_interface %>"
pidfile="${statedir}/dhcpd.pid"
<% else -%>
DHCPDARGS="<%= @dhcp_server_interface %>"
<% end -%>