apache2 297 B

123456789101112131415
  1. /var/log/httpd/*log {
  2. daily
  3. ifempty
  4. rotate 7
  5. missingok
  6. compress
  7. dateext
  8. copytruncate
  9. sharedscripts
  10. postrotate
  11. if /usr/bin/supervisorctl status httpd > /dev/null 2>/dev/null ; then \
  12. /usr/bin/supervisorctl restart httpd > /dev/null 2>/dev/null; \
  13. fi;
  14. endscript
  15. }