unbound/unbound.service

20 lines
701 B
SYSTEMD
Raw Normal View History

2019-09-30 11:18:56 -04:00
[Unit]
Description=Unbound recursive Domain Name Server
2022-11-08 03:35:07 +00:00
After=network-online.target
2019-09-30 11:18:56 -04:00
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=/usr/sbin/unbound-checkconf
2022-11-08 03:35:07 +00:00
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'
2019-09-30 11:18:56 -04:00
ExecStart=/usr/sbin/unbound -d $UNBOUND_OPTIONS
ExecReload=+/bin/kill -HUP $MAINPID
2019-09-30 11:18:56 -04:00
[Install]
WantedBy=multi-user.target