From a8b2f2adc217cbe84e000b2b6ade92a12c11c6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Mon, 29 Jan 2024 12:35:47 +0100 Subject: [PATCH] Always auto-restart on crash events Although no way of crashing is known, ensure unbound will restart itself in case of crash. That should minimize possible damage and allow less degraded service until a fix for crashes arrives. Do not try to restart on configuration failures. There restarts will not likely to fix the issue anyway. --- unbound.service | 1 + 1 file changed, 1 insertion(+) diff --git a/unbound.service b/unbound.service index ffaf783..74321c7 100644 --- a/unbound.service +++ b/unbound.service @@ -14,6 +14,7 @@ EnvironmentFile=-/etc/sysconfig/unbound ExecStartPre=/usr/sbin/unbound-checkconf ExecStart=/usr/sbin/unbound -d $UNBOUND_OPTIONS ExecReload=/usr/sbin/unbound-control reload +Restart=on-abnormal [Install] WantedBy=multi-user.target