Hi Marc In Debian, the pacct file is located in /var/log/account/pacct while in Fedora it is in /var/account/pacct.
I don't see the reason to be less parsable in that location. What is your suggestion? Greetings, Marcos On 17/2/19 20:50, Marc Haber wrote: > Package: acct > Version: 6.6.4-2 > Severity: wishlist > > Hi, > > my package atop needs to adapt itself to acct being installed or not. If > acct is installed, atop reads from acct's log files, while establishing > its own accounting interface it acct is not installed. > > Historically, the pacct file is found in various different places, > varying across distribution, so atop's upstream code does through > various contortions to find the correct file. It for example acts on > /etc/logrotate.d/psacct to find the file being rotated, which fails on > Debian since Debian's acct package uses savelog in /etc/cron.d/acct. > > atop on Debian is currently growing code to parse for the savelog line > in /etc/cron.d/acct to find out the acct file being used. > > Would it be possible ot have the acct file's location in a more easily > parsable location? Thanks for helping! > > Greetings > Marc > > > -- System Information: > Debian Release: buster/sid > APT prefers unstable > APT policy: (500, 'unstable'), (500, 'stable') > Architecture: amd64 (x86_64) > Foreign Architectures: i386 > > Kernel: Linux 4.20.8-zgws1 (SMP w/4 CPU cores) > Kernel taint flags: TAINT_OOT_MODULE > Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=en > (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > Init: systemd (via /run/systemd/system) > > Versions of packages acct depends on: > ii dpkg 1.19.4 > ii install-info 6.5.0.dfsg.1-4+b1 > ii libc6 2.28-7 > ii lsb-base 10.2018112800 > > acct recommends no packages. > > acct suggests no packages. >

