]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemd-journal-upload: Increase failure tolerance (#19426, #2877)
authorPriit Laes <plaes@plaes.org>
Tue, 10 Oct 2023 08:42:37 +0000 (11:42 +0300)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 12 Oct 2023 22:10:59 +0000 (23:10 +0100)
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
```

units/systemd-journal-upload.service.in

index fe52f696376a38a11dc1b0ab4097fc34a777e223..273511e72f7fa94cc8b83cbc6b444cf933396442 100644 (file)
@@ -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