First you can set it up to turn openvpn on and off.

Then find the script to edit. The scripts are in /etc/rc.button and /etc/init.d/