From 85c745d9de3aa4cf12264c658494d2d0c539a81c Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Tue, 10 Mar 2026 00:36:50 -0400 Subject: [PATCH] add unbound.service --- lib/systemd/system/unbound.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/systemd/system/unbound.service diff --git a/lib/systemd/system/unbound.service b/lib/systemd/system/unbound.service new file mode 100644 index 0000000..a11e193 --- /dev/null +++ b/lib/systemd/system/unbound.service @@ -0,0 +1,17 @@ +[Unit] +Description=Unbound DNS server +Documentation=man:unbound(8) +After=network.target +Before=nss-lookup.target +Wants=nss-lookup.target + +[Service] +Type=exec +Restart=on-failure +EnvironmentFile=-/usr/local/etc/unbound/unbound_env +ExecStart=/usr/local/sbin/unbound -d -p $DAEMON_OPTS +ExecReload=+/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target +