Package: atop Version: 2.2.3-1~exp1 Severity: minor Tags: patch Here's an (untested) patch for the daily restart cron job to make it use the official API for testing whether the system was booted with systemd. This is documented in sd_booted(3).
-- System Information: Debian Release: stretch/sid APT prefers testing-debug APT policy: (550, 'testing-debug'), (550, 'testing'), (510, 'unstable-debug'), (510, 'unstable'), (400, 'experimental-debug'), (400, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.7.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
diff -ruN atop-2.2.3.orig/debian/atop.cron.d atop-2.2.3/debian/atop.cron.d --- atop-2.2.3.orig/debian/atop.cron.d 2016-10-05 17:36:30.547841438 +0100 +++ atop-2.2.3/debian/atop.cron.d 2016-10-05 17:41:12.598558504 +0100 @@ -1,4 +1,4 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin # daily restart of atop at midnight -0 0 * * * root if [ "$(readlink -f /proc/1/exe)" = "/lib/systemd/systemd" ]; then systemctl restart atop; else /usr/share/atop/atop.daily \& ; fi +0 0 * * * root if [ -d /run/systemd/system ]; then then systemctl restart atop; else /usr/share/atop/atop.daily \& ; fi