Description of problem: We're not at all consistent about where to find the account file. systemd is told that it's in /var/account: % grep ExecStart /usr/lib/systemd/system/psacct.service ExecStartPre=/usr/libexec/psacct/accton-create ExecStart=/usr/sbin/accton /var/account/pacct But the 'lastcomm' command is built pointing at /var/log/account instead: % strings /usr/bin/lastcomm | grep pacct /var/log/account/pacct End result is that after the system starts up, you can't use 'lastcomm' to actually see anything unless you use 'lastcomm -f /var/account/pacct'. Meanwhile, the logrotate.d/psacct rotates /var/log/account/pacct - which means that after logrotate runs, lastcomm and friends will start working again - but only until the next reboot when systemd runs accton back to /var/account/pacct. (Also, accton-create references /var/account as well). Use one directory, or the other - I really don't care which. But using both is just totally broken. Version-Release number of selected component (if applicable): psacct-6.6.1-3.fc20.x86_64 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Hello Valdis. The logrotate config for psacct points to the /var/account directory in my case. Please, check if you have a correct file installed. The lastcomm tool hardcoded paths need to be fixed. Unfortunately the autotools stuff is totally broken and the shell variables for configuring the paths are ignored. I'm testing a workaround with a couple of sed calls right now. Please, let me know. Thanks. Regards, Jaromir.
psacct-6.6.1-6.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/psacct-6.6.1-6.fc19
Hello Valdis. Please, check whether the latest build resolves the issue for you. I tried to unify the default file locations to /var/account/*acct across the psacct tools. Thanks in advance. Regards, Jaromir.
Package psacct-6.6.1-6.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing psacct-6.6.1-6.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-15165/psacct-6.6.1-6.fc19 then log in and leave karma (feedback).
*** Bug 980193 has been marked as a duplicate of this bug. ***
psacct-6.6.1-6.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.