logo       

Re: 2.0-beta6: "Error: cannot open" with log-append: msg#00497

network.openvpn.user

Subject: Re: 2.0-beta6: "Error: cannot open" with log-append

> Ahh, found the problem.
>
> OpenVPN seems to open the default file, in this case
> "C:\program files\openvpn\log\ljustero.log", regardless of what file is
> specified on "log-append", and then when "log-append" tries to open the
> same file, it is already open.
>
> I can say this because if I specify another file with log-append, it
> works, but ljustero.log is still created, when openvpn is started as a
> service.

There are really two programs here:

openvpnserv.exe -- This is the "service wrapper" -- its job is to scan the
OpenVPN config file directory, create a separate openvpn.exe process for each
config file, and redirect stdout/stderr for each openvpn.exe process to a
specific log file. When you start the "OpenVPN Service", this is the app that
runs.

openvpn.exe -- This exe performs the actual OpenVPN function for one config
file, and when it sees --log or --log-append, it does the redirection without
regard (or knowledge) on what the service that instantiated it has already
redirected stdout/stderr to.

James



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise