Skip to content

Instantly share code, notes, and snippets.

@constantinoneto
Forked from jweslley/rails.logrotate
Created February 1, 2012 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save constantinoneto/1716828 to your computer and use it in GitHub Desktop.
Save constantinoneto/1716828 to your computer and use it in GitHub Desktop.
Logrotate for Rails
#
# File: /etc/logrotate.d/rails
# Test: logrotate -f /etc/logrotate.d/rails
#
/var/www/*/log/*.log {
daily
dateext
notifempty
missingok
rotate 30
compress
delaycompress
copytruncate
sharedscripts
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment