summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/defaults/periodic.conf2
-rwxr-xr-xetc/periodic/daily/310.accounting5
-rw-r--r--share/man/man5/periodic.conf.52
3 files changed, 8 insertions, 1 deletions
diff --git a/etc/defaults/periodic.conf b/etc/defaults/periodic.conf
index 2f2d2a4..706a29c 100644
--- a/etc/defaults/periodic.conf
+++ b/etc/defaults/periodic.conf
@@ -79,7 +79,7 @@ daily_calendar_enable="NO" # Run calendar -a
# 310.accounting
daily_accounting_enable="YES" # Rotate acct files
daily_accounting_compress="NO" # Gzip rotated files
-daily_accounting_flags= # Flags to /usr/sbin/sa
+daily_accounting_flags=-q # Flags to /usr/sbin/sa
daily_accounting_save=3 # How many files to save
# 320.distfile
diff --git a/etc/periodic/daily/310.accounting b/etc/periodic/daily/310.accounting
index 2f9792a..ceb140c 100755
--- a/etc/periodic/daily/310.accounting
+++ b/etc/periodic/daily/310.accounting
@@ -18,6 +18,11 @@ case "$daily_accounting_enable" in
echo '$daily_accounting_enable is set but /var/account/acct' \
"doesn't exist"
rc=2
+ elif [ -z "$daily_accounting_save" ]
+ then
+ echo '$daily_accounting_enable is set but ' \
+ '$daily_accounting_save is not'
+ rc=2
else
echo ""
echo "Rotating accounting logs and gathering statistics:"
diff --git a/share/man/man5/periodic.conf.5 b/share/man/man5/periodic.conf.5
index bf1fa1c..f68c93d 100644
--- a/share/man/man5/periodic.conf.5
+++ b/share/man/man5/periodic.conf.5
@@ -316,6 +316,8 @@ when
.Ar daily_accounting_enable
is set to
.Dq YES .
+The default is
+.Fl q .
.It Va daily_distfile_enable
.Pq Vt bool
Set to
OpenPOWER on IntegriCloud