Skip to content
This repository has been archived by the owner on Dec 8, 2017. It is now read-only.

Commit

Permalink
Merge pull request #46 from 18F/fix-logrotate
Browse files Browse the repository at this point in the history
Fix logrotate issue with logs going to wrong file
  • Loading branch information
mbland committed Oct 1, 2015
2 parents f85cff2 + c14fc9e commit 436b7e5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions _deploy/etc/logrotate.d/18f-pages-server
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Note that copytruncate isn't a perfect solution, but it'll suffice for the
# 18f-pages-server. For more information:
# https://github.com/foreverjs/forever/issues/106#issuecomment-116933382
/var/log/18f-pages-server/pages.log {
rotate 12
monthly
compress
missingok
notifempty
postrotate
/usr/local/bin/forever restart /usr/local/bin/18f-pages
endscript
copytruncate
}

0 comments on commit 436b7e5

Please sign in to comment.