Bug#1106000: systemd-cron: purging "anacron" after systemd-cron will publish message with level 'error' on journal, once
Alexandre Detiste
alexandre.detiste at gmail.com
Sun May 18 17:09:51 BST 2025
Package: systemd-cron
Version: 2.5.1-1
Severity: normal
1) systemd-cron should always ignore /etc/cron.d/anacron to begin with,
-> include this upstream
2) in Debian /etc/cron.d/anacron is harmless anyway (it checks /run/systemd/system)
3) the only worrying thing is the red line in journal
-> it's a false positive due to the fact there is a race-condition
between 'dpkg --purge' and the auto-triggered 'systemctl daemon-reload'
4) add status of cron & anacron in future bug report (purged or not)
--------
root at brix:~# dpkg -l | grep cron
rc anacron 2.3-42 amd64 cron-like program that doesn't go by time
rc cron 3.0pl1-196 amd64 process scheduling daemon
ii cron-daemon-common 3.0pl1-196 all process scheduling daemon's configuration files
ii systemd-cron 2.5.1-1 amd64 systemd generator that provides cron daemon & anacron functionality
root at brix:~# systemctl list-timers | grep cron
Sun 2025-05-18 18:30:00 CEST 33min - - cron-anacron-root-0.timer cron-anacron-root-0.service
Mon 2025-05-19 00:15:00 CEST 6h - - systemd-cron-cleaner.timer systemd-cron-cleaner.service
Mon 2025-05-19 06:10:00 CEST 12h - - cron-daily-popularity-contest.timer cron-daily-popularity-contest.service
Mon 2025-05-19 13:45:00 CEST 19h - - cron-popularity-contest-root-0.timer cron-popularity-contest-root-0.service
root at brix:~# cat /etc/cron.d/anacron
# /etc/cron.d/anacron: crontab entries for the anacron package
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
30 7-23 * * * root [ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi
root at brix:~# dpkg --purge anacron
More information about the Pkg-systemd-maintainers
mailing list