Re: wtmp rotates two times a month
On Mon, Aug 30, 1999 at 06:30:29PM +1000, Brian May wrote:
> My system is fully slink.
> wtmp: I don't understand why it should be so large for 294 entries:
> snoopy# last | wc
> 294 2788 22522
In investigating the above problem, I found something else:
 [snoopy:bam] /var/log >last -f wtmp | less
[2 entries truncated]
wtmp begins Wed Sep 1 06:52:59 1999
 [snoopy:bam] /var/log >last -f wtmp.0 | less
[3 entries truncated]
wtmp.0 begins Tue Aug 31 07:45:28 1999
Now, why is my log file being rotated twice???
My guess is that this is a bug in anacron, similar to what
is already known for laptop suspect and resume, but a bit
different (this computer isn't a laptop), and easier to fix.
In /etc/anacrontab, it says that if the monthly activities
have not been run in the last 30 days, then it should run
them NOW! However, July and August are 31 days... Som on
the 31st anacron runs the monthly routines, and on the
first of the next month, crontab reruns them again. Shouldn't
/etc/anacrontab specify 31 days and not 30 days??
Brian May <firstname.lastname@example.org>