While looking through atop's debian/changelog I found that the systemctl
restart was removed from the cron script in 2.8.1-1, so Ubuntu 24.04 LTS
should not be affected either. The relevant Debian bug was
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1020565
** Bug watch added: Debian Bug tra
AFAICT newer Ubuntu versions are not affected: /etc/cron.d/atop in 24.10
does not have the line that runs systemctl restart any more. It only
has
PATH=/bin:/usr/bin:/sbin:/usr/sbin
# daily restart of atop at midnight
0 0 * * * root [ -d "/run/systemd/system" ] || /usr/share/atop/atop