This script was created last night because I was getting annoyed that a VM on my work laptop was disconnecting while performing an investigation of a phishing campaign. Maybe you'll find it useful.
Set the OVPN file you want to be using in .sh file
chmod +x vpnwatcher.sh
./vpnwatcher.sh