unbound: setup anchor on service restart

This commit is contained in:
Girish Ramakrishnan
2024-09-10 09:48:10 +02:00
parent 92bce26e22
commit e5dcf78ceb

View File

@@ -8,6 +8,7 @@ Wants=network-online.target nss-lookup.target
[Service]
PIDFile=/run/unbound.pid
ExecStartPre=/usr/sbin/unbound-anchor -a /var/lib/unbound/root.key
ExecStart=/usr/sbin/unbound -d
ExecReload=/bin/kill -HUP $MAINPID
Restart=always