From e5dcf78ceb89a695be7cfbdfe89bd05da1a98036 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 10 Sep 2024 09:48:10 +0200 Subject: [PATCH] unbound: setup anchor on service restart --- setup/start/systemd/unbound.service | 1 + 1 file changed, 1 insertion(+) diff --git a/setup/start/systemd/unbound.service b/setup/start/systemd/unbound.service index 1515e5cf6..4f475a52b 100644 --- a/setup/start/systemd/unbound.service +++ b/setup/start/systemd/unbound.service @@ -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