Hello guys, I'm running two openvpn servers on FreeBSD 11.2 and would like to have a log rotation as the messages get flooded.
In the newsyslog.conf there is an entry for log rotation every midnight and the process gets a SIGUSR1 signal to do a "softrestart" as described in the openvpn man pages. This should have the effect to tell the openvpn service the logfile got removed/renamed, in our case zipped and moved. This is the line from newsyslog.conf: /var/log/openvpn 644 30 * @T00 JN /var/run/openvpn.pid 30 In the openvpn.conf the logging is enabled: log /var/log/openvpn Here is the problem: As soon as the log rotation happens, a new logfile is created and the logging STOPS immediately. No logs in the new file. I tried to send the SIGUSR1 signal manually and reset the openvpn service, but this doesn't have any affect. When I restart the service in the usual manner a new file gets created and logging is fine. I read already lots of topics in the openvpn mailinglist but there was no clear solution to this problem. Best, Arthur
_______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users