diff -rub isc-dhcp3-server.orig/files/isc-dhcpd.sh.sample isc-dhcp3-server/files/isc-dhcpd.sh.sample --- isc-dhcp3-server.orig/files/isc-dhcpd.sh.sample Mon Sep 11 15:50:16 2006 +++ isc-dhcp3-server/files/isc-dhcpd.sh.sample Mon Sep 11 15:51:37 2006 @@ -719,4 +719,11 @@ uninstall_cmd=dhcpd_uninstall extra_commands="install uninstall" +# Override /etc/rc.subr JID determiniation, because it doesn't +# work when we launch dhcpd in a jail. +if checkyesno dhcpd_jail_enable ; then + read pid junk < $pidfile 2>/dev/null + [ -n "$pid" ] && JID=`ps -o jid= -p $pid` +fi + run_rc_command "$1"