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.

41 satır
906B

  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: /tmp/var/log/mysql/*.log
  19. config:
  20. - weekly
  21. - missingok
  22. - rotate 52
  23. - compress
  24. - delaycompress
  25. - notifempty
  26. - create 640 root adm
  27. - sharedscripts
  28. syslog:
  29. path:
  30. - /var/log/cron
  31. - /var/log/maillog
  32. - /var/log/messages
  33. - /var/log/secure
  34. - /var/log/spooler
  35. - /var/log/slapd.log
  36. config:
  37. - sharedscripts
  38. - postrotate
  39. - /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
  40. - endscript