Bug 32113

Summary: 200.accounting doesn't match newsyslog.conf
Product: Base System Reporter: Yar Tikhiy <yar>
Component: confAssignee: Brian Somers <brian>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Yar Tikhiy 2001-11-19 20:50:00 UTC
	Currently, the out-of-box /etc/periodic/monthly/200.accounting
	assumes that /var/log/wtmp.0 is uncompressed while the out-of-box
	newsyslog.conf tells newsyslog(8) to compress the rotated file
	with gzip(1).  Consequently, the monthly accounting doesn't work.

	Another problem is that I cannot see either easy for an
	average user/admin or documented way to do weekly or daily
	wtmp rotation and accounting.  Actually, to do that one should
	update *both* day and time in /etc/newsyslog.conf so wtmp gets
	rotated before the accounting run, move the script to the
	corresponding directory in /etc/periodic, and rename possible
	monthly_* configuration variables both in the script and in
	/etc/defaults/periodic.conf...

Fix: On the one hand, the "Z" flag may be removed from the wtmp line
in /etc/newsyslog.conf.  However, a typical wtmp's compression ratio
is too high to leave the file uncompressed.  So, OTOH, 200.accounting
may be modified as follows:
How-To-Repeat: 	See the email from a "periodic monthly" run.
Comment 1 ru freebsd_committer freebsd_triage 2001-11-22 09:22:07 UTC
Responsible Changed
From-To: freebsd-bugs->brian

Brian committed the fix to -CURRENT.
Comment 2 Brian Somers freebsd_committer freebsd_triage 2001-11-27 12:17:13 UTC
State Changed
From-To: open->closed

Fixed in src/etc/periodic/monthly/200.accounting version 1.4.2.3