Default daily_accounting_flags to -q. I thought this was a typo in the

originally submitted patch (oops!).

Also check for an empty $daily_accounting_save.

Submitted by:	Udo Schweigert <Udo.Schweigert@cert.siemens.de>
This commit is contained in:
Brian Somers 2001-05-30 20:23:43 +00:00
parent 6cf2606901
commit f8fb1acb36
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77496
3 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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:"

View File

@ -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