Date: Sun, 07 Jul 2019 17:16:26 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 202203] acct(5): accounting, the default rc.conf doesn't match periodic.conf Message-ID: <bug-202203-227-WgxmNvnUD1@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-202203-227@https.bugs.freebsd.org/bugzilla/> References: <bug-202203-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202203 --- Comment #1 from commit-hook@freebsd.org --- A commit references this bug: Author: ian Date: Sun Jul 7 17:15:45 UTC 2019 New revision: 349807 URL: https://svnweb.freebsd.org/changeset/base/349807 Log: Eliminate spurious periodic.daily error message for rotating accounting l= og. In 2011, r218961 removed local code for rotating logs in favor of using t= he rotate_log command in etc/rc.d/accounting. If the accounting service is activated then subsequently de-activated in rc.conf but still remains act= ive in periodic.conf, then you get an error message every day in the periodic jobs about being unable to rotate the logs. With this change to use "onerotate_log", the log rotation will happen the first time periodic daily runs after accounting was disabled but periodic accounting was left enabled. After that happens once, the /var/account/a= cct will no longer exist, which results in a different path through the perio= dic code and no more error messages will appear (unless daily_show_badconfig = is set, in which case the admin will be told that periodic security processi= ng is enabled but the accounting file is not present). This is only a partial fix for the problems reported in PR 202203. PR: 202203 Changes: head/usr.sbin/periodic/etc/daily/310.accounting --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202203-227-WgxmNvnUD1>