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
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGfea25712ca54: Serialize access to debug.log stream
Branches
Unknown
Tags
Unknown

Event Timeline

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