2013-12-28 05:04:39 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Unbound recursive Domain Name Server
|
|
|
|
After=syslog.target network.target
|
|
|
|
After=unbound-keygen.service
|
|
|
|
Wants=unbound-keygen.service
|
2018-12-21 07:38:50 +01:00
|
|
|
Wants=unbound-anchor.timer
|
2013-12-28 05:04:39 +01:00
|
|
|
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
|
2013-12-28 14:32:42 +01:00
|
|
|
ExecStartPre=/usr/bin/sudo -u unbound /usr/sbin/unbound-anchor -a /var/lib/unbound/root.key -c /etc/unbound/icannbundle.pem
|
2013-12-28 05:04:39 +01:00
|
|
|
ExecStartPre=/usr/sbin/unbound-checkconf
|
|
|
|
ExecStart=/usr/sbin/unbound -d $UNBOUND_OPTIONS
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|