Saltstack Official Apache Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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. }