Skip to content

lightwalletd: Implement mechanism to allow log rotation (a la zcashd) #189

Open
@LarryRuane

Description

@LarryRuane

If the log file is never trimmed, it can exhaust all available disk space. Zcashd has a mechanism to allow a tool like logrotate to do this. (Zcashd inherited this from Bitcoin Core.) It will be very easy to add this mechanism to lightwalletd, just a few lines of code.

The basic idea is the logrotate tool renames the existing log file and sends the process (lightwalletd) a SIGHUP signal, causing it to reopen the log file (and create it since it no longer exists with that name). The logrotate tool can then archive, compress, delete or whatever (according to how it's configured) the non-current log file.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions