aboutsummaryrefslogtreecommitdiff
path: root/net/isc-dhcp30-server
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2006-11-05 11:27:01 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2006-11-05 11:27:01 +0000
commitedec2a0c2fe26c1184421280e23a061d75bb5787 (patch)
treeabeb3272a9138b1ba00ff7778cc8e7c849c3942b /net/isc-dhcp30-server
parent1ca4910cf7a45ea8e3b77427a921515868c4413e (diff)
downloadports-edec2a0c2fe26c1184421280e23a061d75bb5787.tar.gz
ports-edec2a0c2fe26c1184421280e23a061d75bb5787.zip
Notes
Diffstat (limited to 'net/isc-dhcp30-server')
-rw-r--r--net/isc-dhcp30-server/files/isc-dhcpd.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/isc-dhcp30-server/files/isc-dhcpd.in b/net/isc-dhcp30-server/files/isc-dhcpd.in
index 382cf789402c..82f249ad5571 100644
--- a/net/isc-dhcp30-server/files/isc-dhcpd.in
+++ b/net/isc-dhcp30-server/files/isc-dhcpd.in
@@ -719,4 +719,11 @@ install_cmd=dhcpd_install
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"