diff options
author | Sorin-Mihai Vârgolici | 2018-12-23 01:58:21 +0200 |
---|---|---|
committer | Sorin-Mihai Vârgolici | 2018-12-23 01:58:21 +0200 |
commit | 5139ed60b0e18e040ea43895e988290a2fb44f9b (patch) | |
tree | 0b921ac81e866939151a950c0bd57ab08d271b1f /acct | |
download | aur-acct.tar.gz |
Initial commit
Diffstat (limited to 'acct')
-rw-r--r-- | acct | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,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 +} |