From 69c6a41ffb878ef98c9378ed4b1634a404cfaa7f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 02:53:35 +0200 Subject: Adding upstream version 2.7.6. Signed-off-by: Daniel Baumann --- distro/common/knot.service | 19 +++++++++++++++++++ distro/common/knot.tmpfiles | 3 +++ 2 files changed, 22 insertions(+) create mode 100644 distro/common/knot.service create mode 100644 distro/common/knot.tmpfiles (limited to 'distro/common') diff --git a/distro/common/knot.service b/distro/common/knot.service new file mode 100644 index 0000000..9c1545e --- /dev/null +++ b/distro/common/knot.service @@ -0,0 +1,19 @@ +[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 + +[Install] +WantedBy=multi-user.target diff --git a/distro/common/knot.tmpfiles b/distro/common/knot.tmpfiles new file mode 100644 index 0000000..edec729 --- /dev/null +++ b/distro/common/knot.tmpfiles @@ -0,0 +1,3 @@ +# tmpfiles.d(5) runtime directory for knot +#Type Path Mode UID GID Age Argument + d /run/knot 0755 knot knot - - -- cgit v1.2.3