# 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 %{_bindir}/systemctl reload psacct.service fi endscript }