public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] logrotate won't rotate portage logs
@ 2007-01-15 19:32 Mick
  2007-01-20  0:34 ` [gentoo-user] " Mick
  0 siblings, 1 reply; 5+ messages in thread
From: Mick @ 2007-01-15 19:32 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-01-21 14:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-15 19:32 [gentoo-user] logrotate won't rotate portage logs Mick
2007-01-20  0:34 ` [gentoo-user] " Mick
2007-01-20 15:24   ` Hans-Werner Hilse
2007-01-20 16:46     ` Mick
2007-01-21 14:21       ` Hans-Werner Hilse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox