Saltstack Official Apache Formula
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

25 lines
659B

  1. /etc/logrotate.d/apache2:
  2. file:
  3. - managed
  4. - contents: |
  5. /var/log/apache2/*.log {
  6. daily
  7. missingok
  8. rotate 14
  9. compress
  10. delaycompress
  11. notifempty
  12. create 640 root adm
  13. sharedscripts
  14. postrotate
  15. if /etc/init.d/apache2 status > /dev/null ; then \
  16. /etc/init.d/apache2 reload > /dev/null; \
  17. fi;
  18. endscript
  19. prerotate
  20. if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
  21. run-parts /etc/logrotate.d/httpd-prerotate; \
  22. fi; \
  23. endscript
  24. }