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

Fix logrotate issue with logs going to wrong file #46

Merged
merged 1 commit into from
Oct 1, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}