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
OpenVPN process monitoring
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: OpenVPN process monitoring
read up on the openvpn management interface; this interface is explicitly meant to control openvpn, including startup, shutdown, viewing which clients are connected etc.