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 1H6Xen-0002IA-DS for garchives@archives.gentoo.org; Mon, 15 Jan 2007 19:38:13 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id l0FJb5kQ027452; Mon, 15 Jan 2007 19:37:05 GMT Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.232]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id l0FJWlbV021483 for ; Mon, 15 Jan 2007 19:32:48 GMT Received: by wx-out-0506.google.com with SMTP id i30so2663194wxd for ; Mon, 15 Jan 2007 11:32:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=awtq4d8wRUZ+TehGqpNSbf//QD08hkZVbOX2ggnuRPKwpW5ETLmRJQ52oP6TQ+j6KQkBAWbwhSaKWebtUqZd+LEP2zTkdyYmETU3/2dLrmYBpcpx9TeZ1rac46WiSRpaUXk6qr6Vrf0MHSLCPGHy+lj7phVMRdKLcS0hSLXJziU= Received: by 10.70.115.17 with SMTP id n17mr8536122wxc.1168889566441; Mon, 15 Jan 2007 11:32:46 -0800 (PST) Received: by 10.70.124.2 with HTTP; Mon, 15 Jan 2007 11:32:46 -0800 (PST) Message-ID: <358eca8f0701151132v6ef24209paa43700aa6d47f8f@mail.gmail.com> Date: Mon, 15 Jan 2007 19:32:46 +0000 From: Mick To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] logrotate won't rotate portage logs 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=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Archives-Salt: b4e5aff4-b8cb-4f6f-a8d6-3738898495d8 X-Archives-Hash: b940f7c020a653d25abf35172266d1a7 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: ========================================== # 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 } ========================================== 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? -- Regards, Mick -- gentoo-user@gentoo.org mailing list