ab99d1d23e
It has the service and requires unbound user created. Make it separate, because some users of unbound-libs might not want or need anchor maintenance. Make it also easier to add custom options to unbound-anchor running from the service. Do not start timer from unbound.service, start instead unbound-anchor service before starting unbound. It would ensure root anchor is in the place. Run it from single place from both timer and unbound service.
20 lines
483 B
Desktop File
20 lines
483 B
Desktop File
[Unit]
|
|
Description=Unbound recursive Domain Name Server
|
|
After=network-online.target
|
|
After=unbound-keygen.service
|
|
Wants=unbound-keygen.service
|
|
After=unbound-anchor.service
|
|
Wants=unbound-anchor.service
|
|
Before=nss-lookup.target
|
|
Wants=nss-lookup.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
EnvironmentFile=-/etc/sysconfig/unbound
|
|
ExecStartPre=/usr/sbin/unbound-checkconf
|
|
ExecStart=/usr/sbin/unbound -d $UNBOUND_OPTIONS
|
|
ExecReload=/usr/sbin/unbound-control reload
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|