just a simple question. What’s the current best practice for logfile rotation? I start syncthing on FreeBSD with
-logfile /var/log/syncthing.log. I have a
newsyslog.conf line, which rotates that file daily:
/var/log/syncthing.log syncthing:syncthing 644 7 * @T00 XC /var/run/syncthing.pid
“Problem” is that
SIGHUP to syncthing which restarts syncthing. I think it is not needed to restart syncthing completely when the logfile-filedescriptor changes. What’s the cleanest way to do this? Why don’t we have a
SIGHUP handler that reloads the logfile, and, for instance a
SIGUSR1 handler which restarts syncthing instead?