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

Commits on Oct 1, 2015

  1. 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)
    Mike Bland committed Oct 1, 2015
    Configuration menu
    Copy the full SHA
    c14fc9e View commit details
    Browse the repository at this point in the history