Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179855 - portage has no logrotate configuration for emerge.log
Summary: portage has no logrotate configuration for emerge.log
Status: RESOLVED DUPLICATE of bug 52675
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-26 10:43 UTC by Jerome
Modified: 2007-05-26 10:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome 2007-05-26 10:43:29 UTC
localhost ~ # du -sh /var/log/emerge.log
1.4M    /var/log/emerge.log
localhost ~ # grep 'Started emerge' /var/log/emerge.log | head -1
1164072354: Started emerge on: Nov 21, 2006 01:25:54
localhost ~ # grep 'Started emerge' /var/log/emerge.log | tail -1
1180171756: Started emerge on: May 26, 2007 11:29:16
localhost ~ #  

Reproducible: Always



Expected Results:  
add the following config file to /etc/logrotate.d:
---
/var/log/emerge.log {
           monthly
           rotate 9
           compress
           prerotate
               /bin/killall -STOP emerge
           endscript
           postrotate
               /bin/killall -CONT emerge
           endscript
}
---
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-26 10:46:36 UTC
This is not supposed to be rotated automagically, will just breaks lots of tools that need the log there untruncated.

*** This bug has been marked as a duplicate of bug 52675 ***