|
|
Thank you. I should have RTFMed more carefully. If I specify --log or --log-append options, the log file is persistent over the entire course of an OpenVPN instantiation and will not be reset by SIGHUP, SIGUSR1... So I decided to go with --deamon option as the log will write into the system log and in my system the log rotation already processes syslog. Seems that it works OK. M Lu ----- Original Message ----- From: "Tony den Haan" <tony@xxxxxxxxxx> To: <openvpn-users@xxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, November 02, 2004 6:54 AM Subject: Re: [Openvpn-users] Log rotation > On Tuesday 02 November 2004 05:37, M Lu wrote: > > Is there any script to rotate the log file, say every day? If I delete the > > log and touch it, OpenVPN does not write into it anymore. > > cp vpn.log && > vpn.log > > that's 'the' way to handle this > > > tony > > ----- Original Message ----- From: "Ged Haywood" <ged@xxxxxxxxxxxxxxxxxx> To: <openvpn-users@xxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, November 02, 2004 4:24 AM Subject: [Openvpn-users] Re: Log rotation > Hi there, > > On Mon, 1 Nov 2004 M Lu wrote: > > > Is there any script to rotate the log file, say every day? > > I guess you're using Linux, try 'man logrotate' at the command line. > > > If I delete the log and touch it, OpenVPN does not write into it > > anymore. > > It's still writing to the original file. You haven't really deleted > it when you think you have. The operating system still has it open, > use 'lsof' to see that. > > The old file will be deleted if you stop vpn and restart it. The > 'logrotate' utility knows about things like that, it's the same for > other daemons like webservers and mail transfer agents. > > 73, > Ged. > ____________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users |