This is an old revision of the document! LogRotate tomcat and apache/etc/logrotate.d/apache2 /var/log/apache2/*.log { daily missingok rotate 7 compress delaycompress notifempty create 640 root adm sharedscripts postrotate if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then /etc/init.d/apache2 reload > /dev/null fi endscript } /etc/logrotate.d/tomcat6 /var/log/tomcat6/catalina.out { copytruncate daily rotate 7 compress missingok size 5M } |