lightningdevkit / ldk-sample

Sample node implementation using LDK
Apache License 2.0
166 stars 94 forks source link

Reload logging output on SIGHUP #19

Closed TheBlueMatt closed 2 years ago

TheBlueMatt commented 3 years ago

Standard practice for unix-y things is to reload the log output on SIGHUP to allow logrotate to move the log every day. Obviously the sample isnt really intended as a daemon given it has a cli input, but it may still be nice to do so.

TheBlueMatt commented 2 years ago

Oh, we actually dont' even keep the fd open. I mean we probably should, but until we do this isn't an issue.