summarylogtreecommitdiffstats
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rw-r--r--service14
1 files changed, 14 insertions, 0 deletions
diff --git a/service b/service
new file mode 100644
index 000000000000..c8cf7d37a414
--- /dev/null
+++ b/service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Unbound DNS Resolver
+Wants=nss-lookup.target
+Before=network-online.target nss-lookup.target
+After=network.target
+
+[Service]
+PIDFile=/run/unbound.pid
+ExecStart=/usr/bin/unbound -d
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=always
+
+[Install]
+WantedBy=multi-user.target