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 } ---
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 ***