182ead
[Unit]
182ead
Description=Unbound recursive Domain Name Server
182ead
After=network.target
182ead
After=unbound-keygen.service
182ead
Wants=unbound-keygen.service
182ead
Wants=unbound-anchor.timer
182ead
Before=nss-lookup.target
182ead
Wants=nss-lookup.target
182ead
182ead
[Service]
182ead
Type=simple
182ead
EnvironmentFile=-/etc/sysconfig/unbound
182ead
ExecStartPre=/usr/sbin/unbound-checkconf
182ead
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'
182ead
ExecStart=/usr/sbin/unbound -d $UNBOUND_OPTIONS
182ead
ExecReload=/usr/sbin/unbound-control reload
182ead
182ead
[Install]
182ead
WantedBy=multi-user.target