The problem is as follows:
It is required to determine the success of the connection, analyzing the return code, but when using the command
Code: Select all
openvpn --config path2config.ovpn
If you use the "--daemon" option, then "echo $?" always returns "0", regardless of whether the connection is established or not.
Has anyone come across such a problem?