projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8be60c
)
systemd-journal-upload: Increase failure tolerance (#19426, #2877)
author
Priit Laes
<plaes@plaes.org>
Tue, 10 Oct 2023 08:42:37 +0000
(11:42 +0300)
committer
Luca 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
patch
|
blob
|
history
diff --git
a/units/systemd-journal-upload.service.in
b/units/systemd-journal-upload.service.in
index fe52f696376a38a11dc1b0ab4097fc34a777e223..273511e72f7fa94cc8b83cbc6b444cf933396442 100644
(file)
--- 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