summaryrefslogtreecommitdiffstats
path: root/distro/deb/knot.service
diff options
context:
space:
mode:
Diffstat (limited to 'distro/deb/knot.service')
-rw-r--r--distro/deb/knot.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/distro/deb/knot.service b/distro/deb/knot.service
new file mode 100644
index 0000000..750fadb
--- /dev/null
+++ b/distro/deb/knot.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=Knot DNS server
+Wants=network-online.target
+After=network-online.target
+Documentation=man:knotd(8) man:knot.conf(5) man:knotc(8)
+
+[Service]
+Type=notify
+User=knot
+Group=knot
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SETPCAP
+AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_SETPCAP
+ExecStartPre=/usr/sbin/knotc conf-check
+ExecStart=/usr/sbin/knotd
+ExecReload=/usr/sbin/knotc reload
+Restart=on-abort
+LimitNOFILE=1048576
+
+[Install]
+WantedBy=multi-user.target