diff options
Diffstat (limited to 'sys-process/acct/files/acct.logrotate-r1')
-rw-r--r-- | sys-process/acct/files/acct.logrotate-r1 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sys-process/acct/files/acct.logrotate-r1 b/sys-process/acct/files/acct.logrotate-r1 new file mode 100644 index 000000000000..3587e5acfa68 --- /dev/null +++ b/sys-process/acct/files/acct.logrotate-r1 @@ -0,0 +1,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 +} |