Skip to content

Instantly share code, notes, and snippets.

@dokipen
Created May 17, 2011 13:19
Show Gist options
  • Select an option

  • Save dokipen/976449 to your computer and use it in GitHub Desktop.

Select an option

Save dokipen/976449 to your computer and use it in GitHub Desktop.
logrotate nginx conf
/var/log/nginx/*.log {
daily
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
endscript
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment