summaryrefslogtreecommitdiff
path: root/net/isc-dhcp3-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-dhcp3-server
parentUpgrade to 1.1. (diff)
- fix isc-dhcpd.sh jail options stop and status commands
PR: 103168 Submitted by: Chris Cowart Approved by: Joerg Pulz (maintainer)
Diffstat (limited to 'net/isc-dhcp3-server')
-rw-r--r--net/isc-dhcp3-server/files/isc-dhcpd.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/isc-dhcp3-server/files/isc-dhcpd.in b/net/isc-dhcp3-server/files/isc-dhcpd.in
index 382cf789402c..82f249ad5571 100644
--- a/net/isc-dhcp3-server/files/isc-dhcpd.in
+++ b/net/isc-dhcp3-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"