summarylogtreecommitdiffstats
path: root/acct
diff options
context:
space:
mode:
Diffstat (limited to 'acct')
-rw-r--r--acct15
1 files changed, 15 insertions, 0 deletions
diff --git a/acct b/acct
new file mode 100644
index 000000000000..c81b88d3ac19
--- /dev/null
+++ b/acct
@@ -0,0 +1,15 @@
+# Logrotate file for acct
+
+/var/log/account/pacct {
+ compress
+ delaycompress
+ notifempty
+ daily
+ rotate 31
+ create 0600 root root
+ postrotate
+ if /usr/bin/systemctl --quiet is-active acct.service ; then
+ /usr/sbin/accton /var/log/account/pacct | /usr/bin/grep -v "Turning on process accounting, file set to '/var/log/account/pacct'." | /usr/bin/cat
+ fi
+ endscript
+}