Agree, cron is far from elegant... According to https://manpages.ubuntu.com/manpages/noble/en/man8/openvpn.8.html#scripting%20integration OpenVPN would have script hooks but I'm aware that this looks quite complex to implement in OPNsense. Also it would then be just a solution for OpenVPN and not for other kinds of interface changes on the system.