apache2 488 B

12345678910111213141516171819
  1. /var/log/apache2/*.log /var/log/apache2/domains/*log {
  2. rotate 4
  3. weekly
  4. missingok
  5. notifempty
  6. compress
  7. delaycompress
  8. create 640
  9. sharedscripts
  10. postrotate
  11. /etc/init.d/apache2 reload > /dev/null || true
  12. [ ! -f /run/nginx.pid ] || kill -USR1 `cat /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. }