The configurations could be set to exit on failure, and a wrapper script (supervised by runit or a similar tool) could be responsible for rotating between them.
Why not just have separate config files for each possible configuration,
rather than stuffing several configurations in one file?
- [Openvpn-devel] Configuration flexibility enhancement sugges... Tony
- [Openvpn-devel] Re: Configuration flexibility enhanceme... Charles Duffy