summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 21:23:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 21:23:00 +0000
commitb46c62e0bcb6019b5c1c201fc0f5c293ff50b533 (patch)
tree21da0239ed53c28b06dc91089cf4cd2c3486000b
parentUpdating vcs fields. (diff)
downloadknot-resolver-b46c62e0bcb6019b5c1c201fc0f5c293ff50b533.tar.xz
knot-resolver-b46c62e0bcb6019b5c1c201fc0f5c293ff50b533.zip
Setting Restart to always in systemd unit.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/patches/progress-linux/0001-kresd-restart.patch15
-rw-r--r--debian/patches/series1
2 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0001-kresd-restart.patch b/debian/patches/progress-linux/0001-kresd-restart.patch
new file mode 100644
index 0000000..08754d6
--- /dev/null
+++ b/debian/patches/progress-linux/0001-kresd-restart.patch
@@ -0,0 +1,15 @@
+Author: Daniel Baumann <daniel.baumann@progress-linux.org>
+Description: Always restarting kresd for resilience reasons.
+
+diff -Naurp knot-resolver.orig/systemd/kresd@.service.in knot-resolver/systemd/kresd@.service.in
+--- knot-resolver.orig/systemd/kresd@.service.in
++++ knot-resolver/systemd/kresd@.service.in
+@@ -20,7 +20,7 @@ CapabilityBoundingSet=CAP_NET_BIND_SERVI
+ AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_SETPCAP
+ TimeoutStopSec=10s
+ WatchdogSec=10s
+-Restart=on-abnormal
++Restart=always
+ LimitNOFILE=524288
+ Slice=system-kresd.slice
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..96443a0
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+progress-linux/0001-kresd-restart.patch