blob: c81b88d3ac197f93ab55f9d80d40dbe167f93501 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# Logrotate file for acct
/var/log/account/pacct {
compress
delaycompress
notifempty
daily
rotate 31
create 0600 root root
postrotate
if /usr/bin/systemctl --quiet is-active acct.service ; then
/usr/sbin/accton /var/log/account/pacct | /usr/bin/grep -v "Turning on process accounting, file set to '/var/log/account/pacct'." | /usr/bin/cat
fi
endscript
}
|