Am 13.04.26 um 15:29 schrieb Lin Qigang:
On 4/13/26 8:17 PM, Vincent Lefevre wrote:
Control: retitle -1 anacron: upgrade hangs for any jobs waiting to be
run (anacron 2.3-48)
Note to Lin Qigang about
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1133304;msg=40
You should not put the title inside (single or double) quotes, and
the command must not have word-wrapping.
Thank you. I thought word-wrapping from my client must be the reason so
I tried quotes surrounding, but this does not work.
It seems that running anacron is forced by the new "Type=oneshot"
(→ "Anacron 2.3 started on ..."), but this is done in the foreground.
So anacron 2.3-49 is now in experimental for testing that Type=oneshot
is the issue. After some testing this is the issue, I will upload
anacron 2.3-50 to unstable and close this bug. Thank you again for testing!
This makes sense: If Type is unset systemd assumes "simple", which
considers the service up as soon as the process has been forked off,
while "oneshot" waits for it to exit.
But why is anacron.service started during installation at all? Shouldn't
only the timer unit be started, which can then start the service unit in
turn if needed (in the background)?
If my understanding is correct and the service unit should be started
only via the timer, the actual problem is likely the [Install] section
(which makes the service run independently of the timer). None of the
other service units started via timer on my system have it.
Best regards,
Fiona