Skip to content

Instantly share code, notes, and snippets.

@jschoolcraft
Forked from henrik/logrotate.conf
Created April 6, 2009 12:50
Show Gist options
  • Save jschoolcraft/90745 to your computer and use it in GitHub Desktop.
Save jschoolcraft/90745 to your computer and use it in GitHub Desktop.
# Install logrotate on OS X:
# sudo port clean --all logrotate && sudo port install logrotate
# Add e.g. this to your crontab:
# /opt/local/sbin/logrotate -s /Users/deploy/.logrotate/sites.status /Users/deploy/.logrotate/sites.conf
# This file would be sites.conf.
# See http://overstimulate.com/articles/logrotate-rails-passenger for more info.
daily
missingok
rotate 30
compress
delaycompress
sharedscripts
/Users/deploy/Sites/rails.example.com/shared/log/*.log {
postrotate
touch /Users/deploy/Sites/rails.example.com/current/tmp/restart.txt
endscript
}
/Users/deploy/Sites/merb.example.com/shared/log/*.log {
postrotate
touch /Users/deploy/Sites/merb.example.com/current/tmp/restart.txt
endscript
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment