From b045529c40c83601909dca7b76a53498e9a70f33 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 21:05:44 +0200 Subject: Adding upstream version 3.3.4. Signed-off-by: Daniel Baumann --- distro/common/cz.nic.knotd.conf | 9 +++++++++ distro/common/knot.service | 30 ++++++++++++++++++++++++++++++ distro/common/system-local.conf | 5 +++++ 3 files changed, 44 insertions(+) create mode 100644 distro/common/cz.nic.knotd.conf create mode 100644 distro/common/knot.service create mode 100644 distro/common/system-local.conf (limited to 'distro/common') diff --git a/distro/common/cz.nic.knotd.conf b/distro/common/cz.nic.knotd.conf new file mode 100644 index 0000000..50af87a --- /dev/null +++ b/distro/common/cz.nic.knotd.conf @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/distro/common/knot.service b/distro/common/knot.service new file mode 100644 index 0000000..e6c13ed --- /dev/null +++ b/distro/common/knot.service @@ -0,0 +1,30 @@ +[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 -m "$KNOT_CONF_MAX_SIZE" +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-abort +LimitNOFILE=1048576 +TimeoutStopSec=300 +# Extend the systemd startup timeout by this value (seconds) for each zone +Environment="KNOT_ZONE_LOAD_TIMEOUT_SEC=180" +# Maximum size (MiB) of a configuration database +Environment="KNOT_CONF_MAX_SIZE=512" + +# Expected systemd >= v239 +RuntimeDirectory=knot +StateDirectory=knot +NoNewPrivileges=yes + +[Install] +WantedBy=multi-user.target diff --git a/distro/common/system-local.conf b/distro/common/system-local.conf new file mode 100644 index 0000000..8df0a2f --- /dev/null +++ b/distro/common/system-local.conf @@ -0,0 +1,5 @@ + + + unix:path=/rundir/dbus.sock + -- cgit v1.2.3