Blame SOURCES/psacct-logrotate.in

0a209a
# Logrotate file for psacct RPM
0a209a
0a209a
/var/account/pacct {
0a209a
    compress
0a209a
    delaycompress
0a209a
    notifempty
0a209a
    daily
0a209a
    rotate 31
0a209a
    create 0600 root root
0a209a
    postrotate
0a209a
       if %{_bindir}/systemctl --quiet is-active psacct.service ; then
0a209a
           %{_sbindir}/accton /var/account/pacct | %{_bindir}/grep -v "Turning on process accounting, file set to '/var/account/pacct'." | %{_bindir}/cat
0a209a
       fi
0a209a
    endscript
0a209a
}