Skip to content

Fix pkgstats.timer#51

Merged
pierres merged 1 commit intoarchlinux-de:mainfrom
haansn08:systemd-timer
Feb 5, 2026
Merged

Fix pkgstats.timer#51
pierres merged 1 commit intoarchlinux-de:mainfrom
haansn08:systemd-timer

Conversation

@haansn08
Copy link
Contributor

@haansn08 haansn08 commented Feb 4, 2026

The current timer file is faulty and the systemd timer does not fire at all if the computer is restarted daily. This problem is also described here: systemd/systemd#21166

The correct way to configure the timer is RandomizedOffsetSec= (see man systemd.timer)

The current timer file is faulty and the systemd timer does not fire at all if the computer is restarted daily. This problem is also described here: systemd/systemd#21166

 The correct way to configure the timer is `RandomizedOffsetSec=` (see [`man systemd.timer`](https://www.man7.org/linux/man-pages/man5/systemd.timer.5.html))
Copy link
Member

@pierres pierres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! I verified this issue on my own system - despite daily reboots, the timer was only firing roughly monthly instead of weekly due to RandomizedDelaySec resetting on each boot.

RandomizedOffsetSec (available since systemd 258, in Arch since September 2025) solves this by applying a stable machine-id-based offset to the calendar schedule, maintaining proper load distribution while working correctly across reboots.

@pierres pierres merged commit 31680d0 into archlinux-de:main Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants