On 2026-04-13 22:44:00 +0700, Lin Qigang wrote:
> The install section was removed from the service file before and
> added again since this caused issues.

Only because the maintainer did something wrong when he removed
the Install section. At

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913584#5,

Michael Biebl said:

  Starting via multi-user.target should either be re-introduced or
  the symlink removed on upgrades.
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

So, removing the symlink would have been the other possibility.

Running anacron on upgrades is not a big problem, but it makes the
start time of the daily jobs less regular without any good reason
when an upgrade is done between midnight and 07:30. For instance,
if an upgrade is done on day 3 at 00:10,

Day 1: 07:30 (with a delay of up to 5 minutes)
Day 2: 07:30 (with a delay of up to 5 minutes)
Day 3: 00:10
Day 4: 07:30 (with a delay of up to 5 minutes)

So I would say that it would be better to avoid that.

> If there is an actual issue with the install section, I will debug
> this via a new issue since this one will close with the next release
> of anacron 2.3-50.

I confirm that upgrading to anacron 2.3-49 between midnight and 07:30
did not hang:

Apr 14 02:24:16 qaa systemd[1]: Started anacron.service - Run anacron jobs.
Apr 14 02:24:16 qaa systemd[1]: anacron.timer: Deactivated successfully.
Apr 14 02:24:16 qaa systemd[1]: Stopped anacron.timer - Trigger anacron every 
hour.
Apr 14 02:24:16 qaa systemd[1]: Stopping anacron.timer - Trigger anacron every 
hour...
Apr 14 02:24:16 qaa systemd[1]: Started anacron.timer - Trigger anacron every 
hour.
Apr 14 02:24:16 qaa anacron[983995]: Anacron 2.3 started on 2026-04-14
Apr 14 02:24:16 qaa anacron[983995]: Will run job `cron.daily' in 5 min.
Apr 14 02:24:16 qaa anacron[983995]: Jobs will be executed sequentially
[...]
Apr 14 02:29:16 qaa anacron[983995]: Job `cron.daily' started
Apr 14 02:29:16 qaa anacron[984832]: Updated timestamp for job `cron.daily' to 
2026-04-14
Apr 14 02:29:17 qaa anacron[983995]: Job `cron.daily' terminated
Apr 14 02:29:17 qaa anacron[983995]: Normal exit (1 job run)
Apr 14 02:29:17 qaa systemd[1]: anacron.service: Deactivated successfully.
Apr 14 02:29:17 qaa systemd[1]: anacron.service: Consumed 719ms CPU time over 
5min 747ms wall clock time, 149.9M memory peak.

and in /var/log/dpkg.log:

2026-04-14 02:24:15 configure anacron:amd64 2.3-49 <none>
2026-04-14 02:24:15 status unpacked anacron:amd64 2.3-49
2026-04-14 02:24:16 status half-configured anacron:amd64 2.3-49
2026-04-14 02:24:16 status installed anacron:amd64 2.3-49

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

Reply via email to