feat(restic): allow delaying timer activation by a random delay in a specified interval
This commit is contained in:
@@ -4,6 +4,9 @@ Description=Run {{ restic_timer_description | default(restic_job_name) }}
|
|||||||
[Timer]
|
[Timer]
|
||||||
OnCalendar={{ restic_policy.frequency }}
|
OnCalendar={{ restic_policy.frequency }}
|
||||||
Unit={{ restic_systemd_unit_naming_scheme }}.service
|
Unit={{ restic_systemd_unit_naming_scheme }}.service
|
||||||
|
{% if restic_systemd_timer_randomized_delay_sec %}
|
||||||
|
RandomizedDelaySec={{ restic_systemd_timer_randomized_delay_sec }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=timers.target
|
WantedBy=timers.target
|
||||||
|
|||||||
Reference in New Issue
Block a user