diff -Nrup a/45atoppm b/45atoppm --- a/45atoppm 2022-12-29 23:33:21.000000000 +0100 +++ b/45atoppm 2022-12-31 01:03:25.827248969 +0100 @@ -4,7 +4,7 @@ LOGPATH=/var/log/atop BINPATH=/usr/bin -PIDFILE=/var/run/atop.pid +PIDFILE=/run/atop/atop.pid INTERVAL=600 # interval 10 minutes CURDAY=`date +%Y%m%d` # current date in same format diff -Nrup a/atopacctd.h b/atopacctd.h --- a/atopacctd.h 2022-12-29 23:33:20.000000000 +0100 +++ b/atopacctd.h 2022-12-31 01:04:25.753838924 +0100 @@ -35,7 +35,7 @@ /* ** name of the PID file */ -#define PIDFILE "/var/run/atopacctd.pid" +#define PIDFILE "/run/atop/atopacctd.pid" /* ** directory containing the source accounting file and @@ -43,7 +43,7 @@ ** this directory can be overruled by a command line parameter (atopacctd) ** or by a keyword in the /etc/atoprc file (atop) */ -#define PACCTDIR "/var/run" +#define PACCTDIR "/run" /* ** accounting file (source file to which kernel writes records) diff -Nrup a/atopacct.service b/atopacct.service --- a/atopacct.service 2022-12-29 23:33:21.000000000 +0100 +++ b/atopacct.service 2022-12-31 01:05:11.892293430 +0100 @@ -6,7 +6,8 @@ Before=atop.service [Service] Type=forking -PIDFile=/var/run/atopacctd.pid +RuntimeDirectory=atop +PIDFile=/run/atop/atopacctd.pid ExecStartPre=/bin/sh -c 'if systemctl -q is-active acct psacct; then echo "Process accounting already in use by (ps)acct"; exit 1; fi' ExecStart=/usr/sbin/atopacctd diff -Nrup a/atop.daily b/atop.daily --- a/atop.daily 2022-12-29 23:33:21.000000000 +0100 +++ b/atop.daily 2022-12-31 01:06:17.577940874 +0100 @@ -8,7 +8,7 @@ LOGPATH=/var/log/atop # allow administrator to overrule the variables # defined above # -DEFAULTSFILE=/etc/default/atop # possibility to overrule vars +DEFAULTSFILE=/etc/sysconfig/atop # possibility to overrule vars if [ -e "$DEFAULTSFILE" ] then @@ -26,7 +26,7 @@ fi CURDAY=`date +%Y%m%d` BINPATH=/usr/bin -PIDFILE=/var/run/atop.pid +PIDFILE=/run/atop/atop.pid # verify if atop still runs for daily logging # diff -Nrup a/atop.service b/atop.service --- a/atop.service 2022-12-29 23:33:21.000000000 +0100 +++ b/atop.service 2022-12-31 01:06:58.528344720 +0100 @@ -8,7 +8,7 @@ Environment="LOGOPTS=" Environment="LOGINTERVAL=600" Environment="LOGGENERATIONS=28" Environment="LOGPATH=/var/log/atop" -EnvironmentFile=/etc/default/atop +EnvironmentFile=/etc/sysconfig/atop ExecStartPre=/bin/sh -c 'test -n "$LOGINTERVAL" -a "$LOGINTERVAL" -eq "$LOGINTERVAL"' ExecStartPre=/bin/sh -c 'test -n "$LOGGENERATIONS" -a "$LOGGENERATIONS" -eq "$LOGGENERATIONS"' ExecStart=/bin/sh -c 'exec /usr/bin/atop ${LOGOPTS} -w "${LOGPATH}/atop_$(date +%%Y%%m%%d)" ${LOGINTERVAL}' diff -Nrup a/netatopd.h b/netatopd.h --- a/netatopd.h 2022-12-29 23:33:20.000000000 +0100 +++ b/netatopd.h 2022-12-31 01:07:31.282656350 +0100 @@ -28,7 +28,7 @@ #define SEMAKEY 1541961 -#define NETEXITFILE "/var/run/netatop.log" +#define NETEXITFILE "/run/netatop.log" #define MYMAGIC (unsigned int) 0xfeedb0b0 struct naheader {