Skip to content

Instantly share code, notes, and snippets.

@vddgil
Created January 7, 2013 09:51
Show Gist options
  • Save vddgil/4473768 to your computer and use it in GitHub Desktop.
Save vddgil/4473768 to your computer and use it in GitHub Desktop.
/opt/nginx/logs/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
[ ! -f /opt/nginx/logs/nginx.pid ] || kill -USR1 `cat /opt/nginx/logs/nginx.pid`
endscript
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment