1 2 3 4 5 6 7
/var/log/apache2/*log { postrotate if /etc/init.d/apache2 status; then /etc/init.d/apache2 reload --quiet || true fi endscript }