summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-05-30 20:23:43 +0000
committerbrian <brian@FreeBSD.org>2001-05-30 20:23:43 +0000
commit3322ac29631ab8a7870f51437abae91528a4158f (patch)
tree5dc7f44311fec4dd50754b2cdd91366fef005dd0 /etc/periodic
parenta188d3be398dd22c7aa477e8cb43f9fc948ec0d0 (diff)
downloadFreeBSD-src-3322ac29631ab8a7870f51437abae91528a4158f.zip
FreeBSD-src-3322ac29631ab8a7870f51437abae91528a4158f.tar.gz
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>
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/daily/310.accounting5
1 files changed, 5 insertions, 0 deletions
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:"
OpenPOWER on IntegriCloud