Skip to content

Instantly share code, notes, and snippets.

@jweslley
Created January 30, 2012 14:01
Show Gist options
  • Save jweslley/1704538 to your computer and use it in GitHub Desktop.
Save jweslley/1704538 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