apache2 594 B

12345678910111213141516171819
  1. /var/log/apache2/*.log /var/log/apache2/domains/*log {
  2. weekly
  3. missingok
  4. rotate 52
  5. compress
  6. delaycompress
  7. notifempty
  8. create 640 root adm
  9. sharedscripts
  10. postrotate
  11. /etc/init.d/apache2 reload > /dev/null || true
  12. [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
  13. endscript
  14. prerotate
  15. if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
  16. run-parts /etc/logrotate.d/httpd-prerotate; \
  17. fi; \
  18. endscript
  19. }