Skip to content

Instantly share code, notes, and snippets.

@tooooolong
Forked from rubyonrailsworks/passenger.log
Created November 15, 2012 08:52
Show Gist options
  • Save tooooolong/4077483 to your computer and use it in GitHub Desktop.
Save tooooolong/4077483 to your computer and use it in GitHub Desktop.
Logrotate
/var/rails/magic_orders/current/log/production.log {
compress
daily
rotate 30
create
missingok
compresscmd /usr/bin/zip
uncompresscmd /usr/bin/unzip
compressoptions -9
compressext .zip
postrotate
cd /var/rails/magic_orders/current && touch tmp/restart.txt
endscript
}
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment