GVM-10 and logrotate

When logrotate rotates my gvmd.log file, the new log file stays empty until I restart gvmd. I don’t see any handling of SIGHUP in the source code, so how can I get useful log files short of cancelling my running scans every 24 hours?

Thanks,

Karl

GVM versions

gvm: 8.0.0
openvas-scanner: 6.0.0
gvm-libs: 10.0

Environment

Operating system: Ubuntu 18.04.2
Kernel: Linux xxxxx 4.15.0-51-generic #.55-Ubuntu SMP Wed May 15 14:27:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Installation method / source: source, PostgreSQL

1 Like

I gave up on this request and configured logrotate to use the copytruncate feature. They claim it can cause problems, but it has been working for us so far. Both gvmd and openvassd deal properly with a truncated log file.