diff options
author | John Grafton <john.grafton@runbox.com> | 2023-02-28 16:49:40 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2023-02-28 16:59:34 +0000 |
commit | 9ab40bc40d4a07e1a9f3622a7779312ca2466b55 (patch) | |
tree | 1efed8fd5e134f3b5aee13cc4eee799f40751cd9 /usr.sbin/periodic/etc | |
parent | 5f7bea2952830ae60d4b65dafdc8411ac9d991f0 (diff) | |
download | src-9ab40bc40d4a07e1a9f3622a7779312ca2466b55.tar.gz src-9ab40bc40d4a07e1a9f3622a7779312ca2466b55.zip |
Diffstat (limited to 'usr.sbin/periodic/etc')
-rwxr-xr-x | usr.sbin/periodic/etc/daily/310.accounting | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/periodic/etc/daily/310.accounting b/usr.sbin/periodic/etc/daily/310.accounting index b0dd786447eb..8eeed16f0516 100755 --- a/usr.sbin/periodic/etc/daily/310.accounting +++ b/usr.sbin/periodic/etc/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 [ $(sysctl -n kern.acct_configured) -eq 0 ] + then + echo '$daily_accounting_enable is set but' \ + 'process accounting is not active' + rc=2 elif [ -z "$daily_accounting_save" ] then echo '$daily_accounting_enable is set but ' \ |