I don't know if this have been previously discussed (haven't found anything in the database). But it seems logical to me, that apache2 should create a file in /etc/logrotate.d to rotate the logs that are created with the default configuration. Mysql ebuild is actually doing this. The ebuild version i have tested is the current stable: 2.0.54-r8 Reproducible: Always Steps to Reproduce: 1. 2. 3.
Huh? $ equery b /etc/logrotate.d/apache2 [ Searching for file(s) /etc/logrotate.d/apache2 in *... ] net-www/apache-2.0.54-r13 (/etc/logrotate.d/apache2)
OK, -r8 does not install this one; I hope we'll really get rid of the two apache layouts ASAP. :/ If you want it, see below: /var/log/apache2/*log { missingok notifempty sharedscripts postrotate /etc/init.d/apache2 reload > /dev/null 2>&1 || true endscript }
An alternative which uses "delaycompress" and apache's "graceful" HUP method # # Apache2 logrotate snippet for Gentoo Linux # contributed by Dan Thorson # /var/log/apache2/*_log { missingok weekly rotate 5 compress delaycompress sharedscripts postrotate apachectl graceful endscript }
(In reply to comment #3) > apachectl graceful This won't work, we have apache2ctl for apache-2. Anyway, if you have suggestions wrt the logrotate script, please open a new bug, don't post to an invalid one. Closing.