psacct/psacct-logrotate.in
daidai_is_here fbf18b7173 modify spec
2020-01-21 16:37:02 +08:00

15 lines
387 B
Plaintext

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