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: > ========================================== > # 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?
Anyone? Anything I could look into? -- Regards, Mick
pgpxYBpB7eTRy.pgp
Description: PGP signature