Initial commit.
This commit is contained in:
15
logrotate.d/psacct
Normal file
15
logrotate.d/psacct
Normal file
@@ -0,0 +1,15 @@
|
||||
# Logrotate file for psacct RPM
|
||||
|
||||
/var/account/pacct {
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
daily
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user