nginx.logrotate 236 B

123456789101112131415
  1. /var/log/nginx/*.log {
  2. su @USER@ @GROUP@
  3. daily
  4. missingok
  5. rotate 52
  6. compress
  7. delaycompress
  8. notifempty
  9. create 640 nginx adm
  10. sharedscripts
  11. postrotate
  12. [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
  13. endscript
  14. }