Bonno Bloksma
2017-07-03 10:54:28 UTC
Hi,
I remember asking this a long time ago and at the time there was no "clean" way to rotate the openvpn log because the process would keep the log open.
I remember that at the time we compromised by doing a copy and truncate trick.
Is there a "proper" way now to use the Linux logrotate feature without the copytruncate option?
There is no default logrotate script in the Debian Linux I use, probably because there is no default openvpn log file.
Becase in my openvpn config I have
log-append /var/log/openvpn-user.log
right now I am using for logrotate:
/var/log/openvpn-user.log {
rotate 12
monthly
copytruncate
compress
missingok
notifempty
}
Is this still the best way to do it?
Using OpenVPN Version: 2.3.4-5+deb8u2 on Debian
Bonno Bloksma
I remember asking this a long time ago and at the time there was no "clean" way to rotate the openvpn log because the process would keep the log open.
I remember that at the time we compromised by doing a copy and truncate trick.
Is there a "proper" way now to use the Linux logrotate feature without the copytruncate option?
There is no default logrotate script in the Debian Linux I use, probably because there is no default openvpn log file.
Becase in my openvpn config I have
log-append /var/log/openvpn-user.log
right now I am using for logrotate:
/var/log/openvpn-user.log {
rotate 12
monthly
copytruncate
compress
missingok
notifempty
}
Is this still the best way to do it?
Using OpenVPN Version: 2.3.4-5+deb8u2 on Debian
Bonno Bloksma