restart wkd sync on failure...

... but with a reasonable delay of five minutes, and limited to three
invocations per hour. After that the service goes into failed state.

This should mitigate service failure caused by intermittent network
issues or server reboot on our side.
This commit is contained in:
Christian Hesse
2022-11-28 10:47:16 +01:00
parent 594009f981
commit 1c296bf292

View File

@ -5,9 +5,13 @@ ConditionPathIsReadWrite=/etc/pacman.d/gnupg/
ConditionFileIsExecutable=SCRIPT_TARGET_DIR/archlinux-keyring-wkd-sync
Description=Refresh existing keys of archlinux-keyring
Wants=network-online.target
StartLimitIntervalSec=1hour
StartLimitBurst=3
[Service]
ExecStart=SCRIPT_TARGET_DIR/archlinux-keyring-wkd-sync
Restart=on-failure
RestartSec=5minutes
CapabilityBoundingSet=
DeviceAllow=