Date: Tue, 6 Jan 1998 22:47:30 -0200 (EDT) From: Joao Carlos Mendes Luis <jonny@coppe.ufrj.br> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/5448: /etc/monthly reports are incorrect Message-ID: <199801070047.WAA07422@gaia.coppe.ufrj.br> Resent-Message-ID: <199801082232.OAA09757@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 5448 >Category: bin >Synopsis: /etc/monthly reports are incorrect >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 8 14:32:21 PST 1998 >Last-Modified: >Originator: Joao Carlos Mendes Luis >Organization: COPPE/UFRJ >Release: FreeBSD 2.2.5-STABLE i386 >Environment: FreeBSD -stable, but think -current also suffers this Default configuration from installation >Description: /etc/monthly generates reports with ac(8), which reads /var/log/wtmp It's expected to give some monthly accounting. But /var/log/wtmp is rotated from crontab, and does not respects /etc/monthly, making the reports without any accuracy. >How-To-Repeat: Wait until cron rotates /var/log/wtmp just a few hours before running /etc/monthly, and see the extremely small times reported. It happened to me this month. :) >Fix: Execute /var/log/wtmp rotation at /etc/monthly. >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801070047.WAA07422>