Skip to content

Instantly share code, notes, and snippets.

@datt
Forked from constantinoneto/rails.logrotate
Created March 3, 2018 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save datt/66e0f4f14b35909253a30bd1d5bf9567 to your computer and use it in GitHub Desktop.
Save datt/66e0f4f14b35909253a30bd1d5bf9567 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