Skip to content

Instantly share code, notes, and snippets.

@clayton
Created September 11, 2013 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayton/6527445 to your computer and use it in GitHub Desktop.
Save clayton/6527445 to your computer and use it in GitHub Desktop.
nginx log rotation for passenger
/usr/local/nginx/logs/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
[ ! -f /usr/local/nginx/logs/nginx.pid ] || kill -USR1 `cat /usr/local/nginx/logs/nginx.pid`
endscript
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment