TIL

systemd-analyze calendar shows when a timer fires next

systemd-analyze calendar reads an OnCalendar= expression and prints the next time it matches, in local time and in UTC.

$ systemd-analyze calendar '*-*-* 04:00:00'
  Original form: *-*-* 04:00:00
Normalized form: *-*-* 04:00:00
    Next elapse: Fri 2026-08-21 04:00:00 CEST
       (in UTC): Fri 2026-08-21 02:00:00 UTC
       From now: 9h left

I check every new expression with it before a timer gets it. --iterations=3 lists the next three matches, which is how I found that the Sunday prune was set for Saturday.

Comments

Buy Logbuch