Skip to content

Instantly share code, notes, and snippets.

@nmattam
Created February 23, 2016 20:04
Show Gist options
  • Save nmattam/c62b7d125d6ae00ef41f to your computer and use it in GitHub Desktop.
Save nmattam/c62b7d125d6ae00ef41f to your computer and use it in GitHub Desktop.
nginx log rotate script
/var/log/opscode/nginx/*.log {
rotate 10
size 104857600
create 644 opscode opscode
delaycompress
sharedscripts
postrotate
/opt/opscode/embedded/sbin/nginx -s reopen
endscript
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment