From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1H8daZ-0006Yv-R1 for garchives@archives.gentoo.org; Sun, 21 Jan 2007 14:22:32 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id l0LELEFZ002054; Sun, 21 Jan 2007 14:21:14 GMT Received: from gabriel.sub.uni-goettingen.de (gabriel.sub.uni-goettingen.de [134.76.163.126]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id l0LEFKjZ026098 for ; Sun, 21 Jan 2007 14:15:20 GMT Received: by gabriel.sub.uni-goettingen.de (Postfix, from userid 8) id F1DF3108E35; Sun, 21 Jan 2007 15:15:20 +0100 (CET) Received: from localhost (dslb-082-083-021-037.pools.arcor-ip.net [82.83.21.37]) by gabriel.sub.uni-goettingen.de (Postfix) with ESMTP id 669B1108E2C for ; Sun, 21 Jan 2007 15:15:19 +0100 (CET) Date: Sun, 21 Jan 2007 15:21:44 +0100 From: Hans-Werner Hilse To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: logrotate won't rotate portage logs Message-Id: <20070121152144.3e78a344.hilse@web.de> In-Reply-To: <358eca8f0701200846w24063a95yfefc7d59c2c39fbf@mail.gmail.com> References: <358eca8f0701151132v6ef24209paa43700aa6d47f8f@mail.gmail.com> <200701200034.26955.michaelkintzios@gmail.com> <20070120162452.3f938cea.hilse@web.de> <358eca8f0701200846w24063a95yfefc7d59c2c39fbf@mail.gmail.com> X-Mailer: Sylpheed 2.3.0 (GTK+ 2.10.6; i586-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Details: No, hits=1.7 required=5.0 tests=AWL,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on gabriel.sub.uni-goettingen.de X-Archives-Salt: 3d6ec8be-db18-4d33-980c-0b4a4f935e48 X-Archives-Hash: 300b61bdf5ce8b870f7fd15f247d2ebf Hi, On Sat, 20 Jan 2007 16:46:36 +0000 Mick wrote: > Thanks HW, this is what logrotate -d shows re. portage logs: > ================================ > # logrotate -d /etc/logrotate.conf > [snip...] > rotating pattern: /var/log/portage/*.log > weekly (1 rotations) > [snip...] > considering log /var/log/portage/4053-xorg-x11-6.8.2-r6.log > log does not need rotating > [snip...] > ================================ Hm, I've never fiddled with logrotate around so much, but if I'm not misinterpreting the man page, you can rotate based on the age of a file using the directive "maxage ". The "weekly" rotation seems to have some state saving and checking on which rotation is based on. > I don't know if you can see something amiss above. I guess I can wait > for a week and see if this problem recurs. You could cheat and use "hwclock" ;-) (if you do, don't forget "--noadjtime" or your clock will skip drastically on each next reboot) -hwh -- gentoo-user@gentoo.org mailing list