Description of problem:
logrotate script 'psacct' rotates /var/account/psacct, but psacct keeps writing to the newly renamed file.
/etc/logrotate.d/psacct script still references init.d service, which does not exist:
if /etc/init.d/psacct status >/dev/null 2>&1; then
therefore psacct does not reload and begin writing to the new /var/account/paacct file.
*** Bug 802434 has been marked as a duplicate of this bug. ***
Here is my replacement script which also includes a workaround to the spam
issue provided in https://bugzilla.redhat.com/show_bug.cgi?id=735300
# Logrotate file for psacct RPM
create 0600 root root
if systemctl --quiet is-active psacct.service
/usr/sbin/accton /var/account/pacct | grep -v "Turning on" | cat
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '16'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 16's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 16 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" and open it against that version of Fedora.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
The process we are following is described here:
Sorry for the delay.
Ian, I've merged your changes together with changes made by Bill McGonigle to the logrotate .in file and modified the spec file accordingly.
Thank you all for the report and help.
psacct-6.5.5-6.fc17 has been submitted as an update for Fedora 17.
psacct-6.5.5-8.fc18 has been submitted as an update for Fedora 18.
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing psacct-6.5.5-8.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
psacct-6.5.5-6.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
psacct-6.5.5-8.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.