aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2010-01-25 22:30:05 +0800
committersem <sem@FreeBSD.org>2010-01-25 22:30:05 +0800
commite23f279fec514d08747011e492b96d27e63cb26f (patch)
tree583222561b335112b72954ac1d15e98ea5875989 /dns
parent1b80a5266d2594f4dab3baf4d98c19567e195f1e (diff)
downloadfreebsd-ports-gnome-e23f279fec514d08747011e492b96d27e63cb26f.tar.gz
freebsd-ports-gnome-e23f279fec514d08747011e492b96d27e63cb26f.tar.zst
freebsd-ports-gnome-e23f279fec514d08747011e492b96d27e63cb26f.zip
- Forgot to set : ${unbound_enable:-"NO"}
- Allow user to set a pid file location with unbound_pidfile="..." PR: ports/142793 (based on) Submitted by: Keith Gaughan <k at stereochro.me>
Diffstat (limited to 'dns')
-rw-r--r--dns/unbound/files/unbound.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/dns/unbound/files/unbound.in b/dns/unbound/files/unbound.in
index 7ce99cee38b8..cc45a2751050 100644
--- a/dns/unbound/files/unbound.in
+++ b/dns/unbound/files/unbound.in
@@ -16,8 +16,11 @@ name="unbound"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/unbound"
-pidfile="%%PREFIX%%/etc/unbound/unbound.pid"
extra_commands="reload"
load_rc_config $name
+
+pidfile=${unbound_pidfile:-"%%PREFIX%%/etc/unbound/unbound.pid"}
+unbound_enable=${unbound_enable:-"NO"}
+
run_rc_command "$1"