Saltstack Official Logrotate Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
917B

  1. # vim: sts=2 ts=2 sw=2 et ai
  2. logrotate:
  3. lookup:
  4. pkg: logrotate
  5. service: crond
  6. jobs:
  7. /tmp/var/log/mysql/error:
  8. config:
  9. - weekly
  10. - missingok
  11. - rotate 52
  12. - compress
  13. - delaycompress
  14. - notifempty
  15. - create 640 root adm
  16. - sharedscripts
  17. mysql:
  18. path:
  19. - /tmp/var/log/mysql/*.log
  20. config:
  21. - weekly
  22. - missingok
  23. - rotate 52
  24. - compress
  25. - delaycompress
  26. - notifempty
  27. - create 640 root adm
  28. - sharedscripts
  29. syslog:
  30. path:
  31. - /var/log/cron
  32. - /var/log/maillog
  33. - /var/log/messages
  34. - /var/log/secure
  35. - /var/log/spooler
  36. - /var/log/slapd.log
  37. config:
  38. - sharedscripts
  39. - postrotate
  40. - /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
  41. - endscript