The openvpn client doesn't exit and let the for loop go on to the next iteration. I looked through the man page, but did not find any option to let it give up and exit. It just keeps retrying the first VPN server IP.

1 Answer
1

Control whether internally or externally generated SIGUSR1 signals are
remapped to SIGHUP (restart without persisting state) or SIGTERM
(exit). signal can be set to "SIGHUP" or "SIGTERM". By default, no
remapping occurs.

Other options I also include in my --config files for openvpn which may affect this are: