Hi, ad^2 wrote: > Hello all, > > Over time the openvpn status log file I have declared in the conf > fails to update. I have a script to read the file and display the > connected users in a webpage. I noticed just recently the page is > empty. Looking at the file I see it is zero bytes and empty. Is this a > known issue? > > The software version is OpenVPN 2.3.1. > > Is there anyway to refresh the log file without restarting the VPN > service?
the openvpn status file is rewritten every few seconds. More precisely, a new file handle is opened every few seconds and the old file is discarded. Using a script , or even a simple 'tail' command will not give the correct result. It is continually refreshed. the openvpn log file is appended whenever a new log/debug/info/warn message is printed. It cannot be refreshed without restarting OpenVPN. HTH, JJK ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users