diff options
| author | Brian Somers <brian@FreeBSD.org> | 2001-05-30 20:23:43 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 2001-05-30 20:23:43 +0000 |
| commit | f8fb1acb36e6d34a13a6babdf585c18c6de2e16f (patch) | |
| tree | 125de1d148082f7b3304aae7b04cbadbdb9553e9 | |
| parent | 6cf26069013fcbee020a644c427a22688629975a (diff) | |
Notes
| -rw-r--r-- | etc/defaults/periodic.conf | 2 | ||||
| -rwxr-xr-x | etc/periodic/daily/310.accounting | 5 | ||||
| -rw-r--r-- | share/man/man5/periodic.conf.5 | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/etc/defaults/periodic.conf b/etc/defaults/periodic.conf index 2f2d2a465952..706a29c74700 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 2f9792a1b1b4..ceb140c76b9a 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 bf1fa1cef825..f68c93dfd161 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 |
