fix(restic): use RandomizedDelaySec

The previously used AccuracySec is the wrong option to distribute timer
activations. See https://www.freedesktop.org/software/systemd/man/latest/systemd.timer.html#RandomizedDelaySec=
This commit is contained in:
Lars Kaiser 2024-02-22 13:02:11 +01:00
parent 1be86920bd
commit c668936178
No known key found for this signature in database
GPG key ID: BB97304A16BC5DCF
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ restic_systemd_working_directory: "/tmp"
restic_systemd_syslog_identifier: "{{ restic_systemd_unit_name }}"
restic_systemd_timer_on_calendar: daily
restic_systemd_timer_accuracy_sec: 3600
restic_systemd_timer_randomized_delay_sec: 3600
restic_systemd_timer_persistent: true
restic_systemd_timer_description: >-
Run {{ restic_systemd_unit_name }}.service on schedule

View file

@ -3,7 +3,7 @@ Description={{ restic_systemd_timer_description }}
[Timer]
OnCalendar={{ restic_systemd_timer_on_calendar }}
AccuracySec={{ restic_systemd_timer_accuracy_sec }}
RandomizedDelaySec={{ restic_systemd_timer_randomized_delay_sec }}
Persistent={{ restic_systemd_timer_persistent | ternary('True', 'False') }}
Unit={{ restic_systemd_service_name }}