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 1H84K4-0004nd-VW for garchives@archives.gentoo.org; Sat, 20 Jan 2007 00:43:09 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id l0K0fx2m008065; Sat, 20 Jan 2007 00:41:59 GMT Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id l0K0Yjtg006066 for ; Sat, 20 Jan 2007 00:34:46 GMT Received: by nf-out-0910.google.com with SMTP id c31so1193888nfb for ; Fri, 19 Jan 2007 16:34:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:message-id; b=C7LUwDl+p+6ednkXImqMBJDOlB5p9F3hWH0LNX55pGxPFOdtQVuRT45HaK9sXHFCmCkwFf4MaHIXWovJm4fQH0jI9FSedUVsi+vmNWF2hylhHdN4uGQ4V0mvBdvw9JOUqE4F1wb79yiGrX2oCN2mw0TN6cMTh55b3c5ixFa2oj8= Received: by 10.49.8.15 with SMTP id l15mr3183956nfi.1169253284673; Fri, 19 Jan 2007 16:34:44 -0800 (PST) Received: from lappy.study ( [213.162.120.196]) by mx.google.com with ESMTP id l27sm7230029nfa.2007.01.19.16.34.42; Fri, 19 Jan 2007 16:34:43 -0800 (PST) From: Mick To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Re: logrotate won't rotate portage logs Date: Sat, 20 Jan 2007 00:34:24 +0000 User-Agent: KMail/1.9.5 References: <358eca8f0701151132v6ef24209paa43700aa6d47f8f@mail.gmail.com> In-Reply-To: <358eca8f0701151132v6ef24209paa43700aa6d47f8f@mail.gmail.com> 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: multipart/signed; boundary="nextPart2166577.tagJ1T7LvN"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200701200034.26955.michaelkintzios@gmail.com> X-Archives-Salt: 919f8638-4933-458e-a544-b7606ce640f1 X-Archives-Hash: 8dae1882c2f663e3d417734d13f1ec60 --nextPart2166577.tagJ1T7LvN Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 15 January 2007 19:32, Mick wrote: > Hi All, > > I do not understand why the log files within /var/log/portage/ will > not rotate on my PC, while they rotate fine on my laptop. The > /etc/logrotate.conf is the same on both boxen: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > # rotate log files weekly > weekly > #daily > > # keep 4 weeks worth of backlogs > rotate 4 > > # create new (empty) log files after rotating old ones > create > > # uncomment this if you want your log files compressed > compress > > # packages can drop log rotation information into this directory > include /etc/logrotate.d > > notifempty > nomail > noolddir > > [snip . . . ] > > # when /var/log/portage gets big > /var/log/portage/*.log > { > rotate 1 > weekly > nocreate > ifempty > olddir /var/log/portage/old > postrotate > find /var/log/portage/old -maxdepth 1 -mtime +30 -exec /bin/rm -f {} \; > endscript > nocompress > } > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > The only difference I noticed (other than the fact that I have two > year old portage log files in /var/log/portage) between the two boxen > is that the access rights of the 'old' directory on the PC were: > > drwxr-sr-x 2 root root 48 Dec 23 2005 old > > while on the laptop which rotates without problems are: > > drwx------ 2 root root 4256 Jan 13 11:20 old > > This may be a bit of a red herring because even though I changed the > access rights as per the laptop, the PC still refuses to rotate the > portage log files. > > Any ideas? How do I troubleshoot this one? Anyone? Anything I could look into? =2D-=20 Regards, Mick --nextPart2166577.tagJ1T7LvN Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBFsWOS5Fp0QerLYPcRAngbAKC0qmMyPFd6atoCxlPed9iOV7QWCACfTazc Ai8iJp+PIRsb0IjD5PmswF4= =I8x0 -----END PGP SIGNATURE----- --nextPart2166577.tagJ1T7LvN-- -- gentoo-user@gentoo.org mailing list