core/timer: Introduce RandomOffsetSec= knob (#36437)

This is like RandomDelaySec, but it doesn't reset whenever the manager
restarts.

Fixes https://github.com/systemd/systemd/issues/21166
This commit is contained in:
Lennart Poettering
2025-06-17 16:05:12 +02:00
committed by GitHub
7 changed files with 75 additions and 23 deletions
+2 -1
View File
@@ -38,7 +38,8 @@ typedef struct Timer {
Unit meta;
usec_t accuracy_usec;
usec_t random_usec;
usec_t random_delay_usec;
usec_t random_offset_usec;
LIST_HEAD(TimerValue, values);
usec_t next_elapse_realtime;