File unbound-resolvconf.service of Package openresolv

[Unit]
Description=Unbound local Domain Name Server for resolvconf
After=syslog.target network.target
After=unbound-keygen.service
Wants=unbound-keygen.service
Wants=unbound-anchor.timer
Before=nss-lookup.target
Wants=nss-lookup.target

[Service]
Type=simple
EnvironmentFile=-/etc/sysconfig/unbound
#ExecStartPre=/sbin/runuser --shell /bin/sh -c "/usr/sbin/unbound-anchor -a /var/lib/unbound/root.key -c /etc/unbound/icannbundle.pem" unbound
ExecStartPre=/usr/bin/sudo -u unbound /usr/sbin/unbound-anchor -a /var/lib/unbound/root.key -c /etc/unbound/icannbundle.pem
ExecStartPre=/usr/sbin/unbound-checkconf /etc/unbound/unbound-resolvconf.conf
ExecStart=/usr/sbin/unbound -d $UNBOUND_OPTIONS -c /etc/unbound/unbound-resolvconf.conf

[Install]
WantedBy=multi-user.target
openSUSE Build Service is sponsored by