nginx 517 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /data/logs/nginx/*/*/*.log {
  2. daily
  3. rotate 7
  4. size 10M
  5. compress
  6. missingok
  7. notifempty
  8. dateext
  9. sharedscripts
  10. postrotate
  11. endscript
  12. }
  13. /data/logs/nginx/*/*.log {
  14. daily
  15. rotate 7
  16. size 10M
  17. compress
  18. missingok
  19. notifempty
  20. dateext
  21. sharedscripts
  22. postrotate
  23. endscript
  24. }
  25. /data/logs/nginx/*.log {
  26. daily
  27. rotate 7
  28. size 10M
  29. missingok
  30. notifempty
  31. dateext
  32. sharedscripts
  33. postrotate
  34. if [ -f /var/run/nginx.pid ]; then
  35. kill -USR1 `cat /var/run/nginx.pid`
  36. fi
  37. endscript
  38. }