HomePhabricator

Reopen debug.log on SIGHUP
9af080c351c4Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Reopen debug.log on SIGHUP

The best log rotation method formerly available was to configure
logrotate with the copytruncate option. As described in the logrotate
documentation, "there is a very small time slice between copying the
file and truncating it, so some logging data might be lost".

By sending SIGHUP to the server process, one can now reopen the debug
log file without losing any data.

Details

Provenance
Michael Hendricks <michael@ndrix.org>Authored on Mar 2 2012, 19:31
deadalnixPushed on May 14 2017, 22:04
Parents
rABCfea25712ca54: Serialize access to debug.log stream
Branches
Unknown
Tags
Unknown

Event Timeline

Michael Hendricks <michael@ndrix.org> committed rABC9af080c351c4: Reopen debug.log on SIGHUP (authored by Michael Hendricks <michael@ndrix.org>).May 18 2012, 22:20