From: Priit Laes Date: Tue, 10 Oct 2023 08:42:37 +0000 (+0300) Subject: systemd-journal-upload: Increase failure tolerance (#19426, #2877) X-Git-Tag: v255-rc1~253 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c08bec1587e102dd0435969e422288d69431e92c;p=thirdparty%2Fsystemd.git systemd-journal-upload: Increase failure tolerance (#19426, #2877) As systemd-journal-upload deals mostly with remote servers, add some failsafes to its unit to restart on failures. ``` [Service] Restart=on-failure RestartSteps=10 RestartMaxDelaySec=60 ``` --- diff --git a/units/systemd-journal-upload.service.in b/units/systemd-journal-upload.service.in index fe52f696376..273511e72f7 100644 --- a/units/systemd-journal-upload.service.in +++ b/units/systemd-journal-upload.service.in @@ -26,6 +26,9 @@ ProtectHostname=yes ProtectKernelLogs=yes ProtectKernelModules=yes ProtectKernelTunables=yes +Restart=on-failure +RestartSteps=10 +RestartMaxDelaySec=60 RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 RestrictNamespaces=yes RestrictRealtime=yes