logrotate_syslogng 608 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /var/log/syslog {
  2. rotate 7
  3. daily
  4. missingok
  5. notifempty
  6. delaycompress
  7. compress
  8. postrotate
  9. if [ -f /var/run/syslog-ng.pid ]; then
  10. kill -HUP `cat /var/run/syslog-ng.pid`
  11. fi
  12. endscript
  13. }
  14. /var/log/mail.info
  15. /var/log/mail.warn
  16. /var/log/mail.err
  17. /var/log/mail.log
  18. /var/log/daemon.log
  19. /var/log/kern.log
  20. /var/log/auth.log
  21. /var/log/user.log
  22. /var/log/lpr.log
  23. /var/log/cron.log
  24. /var/log/debug
  25. /var/log/messages {
  26. rotate 4
  27. weekly
  28. missingok
  29. notifempty
  30. compress
  31. delaycompress
  32. sharedscripts
  33. postrotate
  34. if [ -f /var/run/syslog-ng.pid ]; then
  35. kill -HUP `cat /var/run/syslog-ng.pid`
  36. fi
  37. endscript
  38. }