Bug#1078166: apt-daily.service is sometimes executed during package installation

Vincent Lefevre vincent at vinc17.net
Wed Aug 7 16:06:23 BST 2024


On 2024-08-07 16:42:56 +0200, Julian Andres Klode wrote:
> As I mentioned in the other thread, we do not do anything with the
> systemd services. We do restart the timers, which I guess could mess
> up the randomization or something?
> 
> But I don't know, I'd need more info from systemd people.

Additional details: I can see in the apt-daily.timer file

[Timer]
OnCalendar=*-*-* 6,18:00
RandomizedDelaySec=12h
Persistent=true

and it seems that

  systemctl --system daemon-reload >/dev/null || true

sometimes has the effect to execute the service immediately, thus
ignoring the randomization.

If randomization is currently ignored for some reason, there should
at least be an option to preserve the randomization at the reload
of the daemons. The observed behavior of systemd does not seem to
be documented in the systemd.timer(5) man page.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Pkg-systemd-maintainers mailing list