Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160381817
D37434.id118084.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
577 B
Referenced Files
None
Subscribers
None
D37434.id118084.diff
View Options
diff --git a/usr.sbin/periodic/etc/daily/310.accounting b/usr.sbin/periodic/etc/daily/310.accounting
--- a/usr.sbin/periodic/etc/daily/310.accounting
+++ b/usr.sbin/periodic/etc/daily/310.accounting
@@ -18,6 +18,11 @@
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 ' \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jun 24, 10:48 PM (2 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34295466
Default Alt Text
D37434.id118084.diff (577 B)
Attached To
Mode
D37434: check if accounting is active before attempting to rotate accounting logs
Attached
Detach File
Event Timeline
Log In to Comment