aboutsummaryrefslogtreecommitdiffstats
path: root/main/unbound/unbound.initd
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2019-12-05 13:15:50 +0100
committerJakub Jirutka <jakub@jirutka.cz>2019-12-05 13:19:53 +0100
commitda627589defc40c1a2fbe1116e0e16d5631836b3 (patch)
treeba65a98689fb6bacde182c668398cc5130b67415 /main/unbound/unbound.initd
parentac3bd71db50075cabf3c4acf38c562322e0dc77c (diff)
downloadaports-da627589defc40c1a2fbe1116e0e16d5631836b3.tar.gz
aports-da627589defc40c1a2fbe1116e0e16d5631836b3.tar.bz2
aports-da627589defc40c1a2fbe1116e0e16d5631836b3.tar.xz
main/unbound: remove problematic logic for creating dir for control-interface
And change the default control-interface to /run/unbound.control.sock, so it doesn't need to prepare the directory. Fixes #11016
Diffstat (limited to 'main/unbound/unbound.initd')
-rw-r--r--main/unbound/unbound.initd8
1 files changed, 1 insertions, 7 deletions
diff --git a/main/unbound/unbound.initd b/main/unbound/unbound.initd
index 76eb0f3a13..9fba36cff7 100644
--- a/main/unbound/unbound.initd
+++ b/main/unbound/unbound.initd
@@ -32,13 +32,7 @@ checkconfig() {
}
start_pre() {
- checkconfig || return 1
-
- local i; for i in $(/usr/sbin/unbound-checkconf -o control-interface "$cfgfile"); do
- case "$i" in
- */*) test -e "$i" || checkpath -d -m 750 -o unbound:unbound "$(dirname "$i")" || return 1
- esac
- done
+ checkconfig
}
reload() {