8ba890
[Unit]
8ba890
Description=Unbound recursive Domain Name Server
8ba890
After=network.target
8ba890
After=unbound-keygen.service
8ba890
Wants=unbound-keygen.service
8ba890
Wants=unbound-anchor.timer
8ba890
Before=nss-lookup.target
8ba890
Wants=nss-lookup.target
8ba890
8ba890
[Service]
8ba890
Type=simple
8ba890
EnvironmentFile=-/etc/sysconfig/unbound
8ba890
ExecStartPre=/usr/sbin/unbound-checkconf
f45cca
ExecStartPre=/bin/bash -c 'if [ ! "$DISABLE_UNBOUND_ANCHOR" == "yes" ]; then /usr/sbin/unbound-anchor -a /var/lib/unbound/root.key -c /etc/unbound/icannbundle.pem -f /etc/resolv.conf -R; else echo "Updates of root keys with unbound-anchor is disabled"; fi'
8ba890
ExecStart=/usr/sbin/unbound -d $UNBOUND_OPTIONS
8ba890
ExecReload=/usr/sbin/unbound-control reload
8ba890
8ba890
[Install]
8ba890
WantedBy=multi-user.target