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