unbound/unbound.service
eaglegai dabbc85b85 change ExecReload to fix reload failure
(cherry picked from commit 75d3bdea47ba4e33d9285b527089c6202bf618d9)
2024-03-06 09:21:30 +08:00

20 lines
560 B
Desktop File

[Unit]
Description=Unbound recursive Domain Name Server
After=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=/usr/sbin/unbound-checkconf
ExecStartPre=-/usr/sbin/unbound-anchor -a /var/lib/unbound/root.key -c /etc/unbound/icannbundle.pem -f /etc/resolv.conf -R
ExecStart=/usr/sbin/unbound -d $UNBOUND_OPTIONS
ExecReload=+/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target