summaryrefslogtreecommitdiffstats
path: root/debian/patches/progress-linux
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:56:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:56:08 +0000
commitfe2b59c5bce2fdde373252f0f37177bda08045ac (patch)
tree031b2c3385bceefda42269c08738a1ae672573e7 /debian/patches/progress-linux
parentUpdating vcs fields. (diff)
downloadknot-resolver-fe2b59c5bce2fdde373252f0f37177bda08045ac.tar.xz
knot-resolver-fe2b59c5bce2fdde373252f0f37177bda08045ac.zip
Setting Restart to always in systemd unit.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/progress-linux')
-rw-r--r--debian/patches/progress-linux/0001-kresd-restart.patch15
1 files changed, 15 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..476955c
--- /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/distro/common/systemd/kresd@.service knot-resolver/distro/common/systemd/kresd@.service
+--- knot-resolver.orig/distro/common/systemd/kresd@.service
++++ knot-resolver/distro/common/systemd/kresd@.service
+@@ -8,7 +8,7 @@ Type=notify
+ WorkingDirectory=/var/cache/knot-resolver
+ ExecStart=/usr/sbin/kresd --config=/etc/knot-resolver/kresd.conf
+ User=knot-resolver
+-Restart=on-failure
++Restart=always
+ Sockets=kresd.socket
+ Sockets=kresd-tls.socket
+ Sockets=kresd-control@%i.socket