psacct/SOURCES/psacct-logrotate.in

16 lines
316 B
Plaintext
Raw Permalink Normal View History

2021-11-03 23:29:14 +00:00
# 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
2021-12-07 19:24:24 +00:00
%{_bindir}/systemctl reload psacct.service
2021-11-03 23:29:14 +00:00
fi
endscript
}