OpenVPN process monitoring
Posted: Wed Mar 09, 2011 7:32 am
I have a program that control the OpenVPn process. It create OpenVPN process by calling openvpn.exe, and monitoring if it's working.
It's work fine, except one problem. When it isn't able to start the process(such as can't bind port, or config file syntax error), My program doesn't know why it isn't. Is there anyway to get the error code or some message when OpenVPN isn't able to start the process, except using the redirection of stdout to my program ?
I've tried to get the exit code from openvpn.exe, but it determine nothing.
Regards
It's work fine, except one problem. When it isn't able to start the process(such as can't bind port, or config file syntax error), My program doesn't know why it isn't. Is there anyway to get the error code or some message when OpenVPN isn't able to start the process, except using the redirection of stdout to my program ?
I've tried to get the exit code from openvpn.exe, but it determine nothing.
Regards