Gentoo Archives: gentoo-user

From: Hans-Werner Hilse <hilse@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: logrotate won't rotate portage logs
Date: Sun, 21 Jan 2007 14:22:32
Message-Id: 20070121152144.3e78a344.hilse@web.de
In Reply to: Re: [gentoo-user] Re: logrotate won't rotate portage logs by Mick
1 Hi,
2
3 On Sat, 20 Jan 2007 16:46:36 +0000
4 Mick <michaelkintzios@×××××.com> wrote:
5
6 > Thanks HW, this is what logrotate -d shows re. portage logs:
7 > ================================
8 > # logrotate -d /etc/logrotate.conf
9 > [snip...]
10 > rotating pattern: /var/log/portage/*.log
11 > weekly (1 rotations)
12 > [snip...]
13 > considering log /var/log/portage/4053-xorg-x11-6.8.2-r6.log
14 > log does not need rotating
15 > [snip...]
16 > ================================
17
18 Hm, I've never fiddled with logrotate around so much, but if I'm not
19 misinterpreting the man page, you can rotate based on the age of a file
20 using the directive "maxage <days>". The "weekly" rotation seems to
21 have some state saving and checking on which rotation is based on.
22
23 > I don't know if you can see something amiss above. I guess I can wait
24 > for a week and see if this problem recurs.
25
26 You could cheat and use "hwclock" ;-) (if you do, don't forget
27 "--noadjtime" or your clock will skip drastically on each next reboot)
28
29 -hwh
30 --
31 gentoo-user@g.o mailing list