Check if openvpn is connected?

how to check if openvpn is connected?

openvpn sometime status is not started

how can i check if its started or no using shell script?

i dont want a ping method please… it make my connection unstable…

i want to check if vpn is connection

like the page

how it detect the connection ? what script it use?



Have a look in /usr/share/glweb/vpn.html
Answer is in there somewhere.

I think, what is needed, is a cronjob scipt that checks the openvpn tunnel. If it does not exist, then restart it.