blob: 3d00d122b39d7012f5db7d16097d4e2481e0c1d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/ksh
#
# $OpenBSD: unbound,v 1.9 2024/10/09 15:42:56 kn Exp $
daemon="/usr/sbin/unbound"
daemon_flags="-c /var/unbound/etc/unbound.conf"
. /etc/rc.d/rc.subr
rc_pre() {
local _anchor=$(/usr/sbin/unbound-checkconf -o auto-trust-anchor-file)
if [[ -n $_anchor && ! -f $_anchor ]]; then
/usr/sbin/unbound-anchor -v
fi
/usr/sbin/unbound-checkconf
}
rc_cmd $1
|