1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# Logrotate file for acct /var/account/pacct { compress delaycompress notifempty daily rotate 31 create 0600 root root missingok postrotate if type -p systemctl 2>&1 1>/dev/null && systemctl is-system-running 2>&1 1>/dev/null ; then systemctl try-restart acct 1>/dev/null else /etc/init.d/acct --quiet --ifstarted restart fi endscript }