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 +