1
0
mirror of https://github.com/systemd/systemd synced 2024-07-01 07:34:28 +00:00

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
```
This commit is contained in:
Priit Laes 2023-10-10 11:42:37 +03:00 committed by Luca Boccassi
parent f8be60c6d9
commit c08bec1587

View 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