Skip to content

Instantly share code, notes, and snippets.

@axiaoxin
Last active December 29, 2016 07:34
Show Gist options
  • Save axiaoxin/7c587962ff6914e26181fe219311c678 to your computer and use it in GitHub Desktop.
Save axiaoxin/7c587962ff6914e26181fe219311c678 to your computer and use it in GitHub Desktop.
logrotate-demo
/data/log/capacity-service/*.log {
daily
rotate 30
sharedscripts
dateext
compress
delaycompress
missingok
create 644 root root
postrotate
/usr/bin/killall -HUP gunicorn
endscript
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment