diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:36:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:36:22 +0000 |
commit | b88bb292821fd7742604ec4e280acebd9a049f62 (patch) | |
tree | 625e4e19e6619f7481e5a8103f876520950769f6 /distro/common | |
parent | Initial commit. (diff) | |
download | knot-b88bb292821fd7742604ec4e280acebd9a049f62.tar.xz knot-b88bb292821fd7742604ec4e280acebd9a049f62.zip |
Adding upstream version 3.0.5.upstream/3.0.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'distro/common')
-rw-r--r-- | distro/common/knot.service | 20 | ||||
-rw-r--r-- | distro/common/knot.tmpfiles | 3 |
2 files changed, 23 insertions, 0 deletions
diff --git a/distro/common/knot.service b/distro/common/knot.service new file mode 100644 index 0000000..750fadb --- /dev/null +++ b/distro/common/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 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 - - |