blob: 0f19c90fdf18f27448b69652af50fe91cff1cf21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/ksh
#
# $OpenBSD: unbound,v 1.7 2022/05/21 10:10:45 ajacoutot Exp $
daemon="/usr/sbin/unbound"
daemon_flags="-c /var/unbound/etc/unbound.conf"
. /etc/rc.d/rc.subr
rc_pre() {
if grep '^[[:space:]]*auto-trust-anchor-file:' \
/var/unbound/etc/unbound.conf > /dev/null 2>&1; then
/usr/sbin/unbound-anchor -v
fi
/usr/sbin/unbound-checkconf || return 1
}
rc_cmd $1
|