[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] Re: Log rotation


  • Subject: [Openvpn-users] Re: Log rotation
  • From: Ged Haywood <ged@xxxxxxxxxxxxxxxxxx>
  • Date: Tue, 2 Nov 2004 09:24:26 +0000 (GMT)

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


Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2004-11/msg00028.html on line 195

Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2004-11/msg00028.html on line 195