Hi! On Sat, 2023-07-22 at 19:36:46 +0300, Teemu Likonen wrote: > Package: dpkg > Version: 1.21.22 > Severity: minor > Tags: patch > X-Debbugs-Cc: tliko...@iki.fi
> Dpkg installs systemd timer unit dpkg-db-backup.timer which is supposed > to run daily: > > # /lib/systemd/system/dpkg-db-backup.timer > [Unit] > Description=Daily dpkg database backup timer > Documentation=man:dpkg(1) > > [Timer] > OnCalendar=daily > > [Install] > WantedBy=timers.target > > The "OnCalendar=daily" rule means every night exactly at 00:00:00. The > timer does not trigger if computer is not turned on exactly at that > time. > > I think the timer is meant to trigger daily even if the computer is not > running at midnight. The attached patch makes the timer trigger > immediately if the specified time has passed (Persistent=true). Ah, indeed, nice catch! Queued the patch for the next push. Thanks, Guillem