summaryrefslogtreecommitdiff
path: root/net-dns/unbound/files/unbound_at.service
diff options
context:
space:
mode:
Diffstat (limited to 'net-dns/unbound/files/unbound_at.service')
-rw-r--r--net-dns/unbound/files/unbound_at.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/net-dns/unbound/files/unbound_at.service b/net-dns/unbound/files/unbound_at.service
new file mode 100644
index 000000000000..84b34af45446
--- /dev/null
+++ b/net-dns/unbound/files/unbound_at.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Unbound recursive Domain Name Server
+After=network.target
+Before=nss-lookup.target
+Wants=nss-lookup.target
+
+[Service]
+Type=simple
+ExecStartPre=/usr/sbin/unbound-checkconf /etc/unbound/%i.conf
+ExecStart=/usr/sbin/unbound -d -c /etc/unbound/%i.conf
+
+[Install]
+WantedBy=multi-user.target