psacct/psacct-logrotate.in
Jaromir Capik ecd59bfdf2 - #759321 - psacct logrotate script references init.d service
- #735300 - Enabling psacct causes daily cron spam
2013-01-16 16:39:15 +01:00

16 lines
416 B
Plaintext

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