This repository has been archived by the owner on Dec 8, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix logrotate issue with logs going to wrong file
Noticed that there was a new `/var/log/18f-pages-server/pages.log` file, but that the logs were still going to an uncompressed `/var/log/18f-pages-server/pages.log.1`. The old `postrotate` script wasn't actually successfully restarting the server, and a manual restart also didn't allow the new process to write to the new log file. Found out about the `copytruncate` directive, which will work well enough for 18F Pages, though it's not completely ideal. For more information, this issue has a very helpful comment with a ton of technical background: foreversd/forever#106 (comment)
- Loading branch information