[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1001118: apt-daily*.timer on occasionally running computers



P.S.

I guess RandomizedDelaySec=12h is needed to balance the load on the update servers. So removing or lowering RandomizedDelaySec is probably not a good solution. On the other hand, when a system has just been booted or waked from s2*, there should be no reason to wait further.

So another systemd option is needed to prevent the update from always being run at the same time. But on the other hand there should be no further delay if the timer expired while the system wasn't running.
Unfortunately I don't see such an systemd timer option.

But maybe there's another alternative:
Remove RandomizedDelaySec and replace OnCalendar with OnUnitInactiveSec=12h.
This would result in some randomization. But if I understand systemd correctly, the timer would run immediately if it expired while the system was offline.

https://www.freedesktop.org/software/systemd/man/systemd.timer.html
| OnUnitInactiveSec=
|   Defines a timer relative to when the unit the timer unit is
|   activating was last deactivated.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: