Best autorun for FRR config override?

Started by arichtman, May 11, 2025, 11:32:34 AM

Previous topic - Next topic
May 11, 2025, 11:32:34 AM Last Edit: May 11, 2025, 11:38:17 AM by arichtman
Hi all,

I've got some specific FRR+BGP config that's not possible to do via the web interface but does work if injected manually.
I'll look into contributing to the plugin eventually but for now I just want to automatically overwrite any generated `frr.conf`.

Which is the most appropriate autorun for this? Or should it go in `/etc/rc.conf.d/`?

It essentially only needs to run immediately after the service generates a config file.
Start or Early seem to run before generation of the conf file, and config would run EVERY time a setting changed, which is a lot of service restarts/reloads.

https://docs.opnsense.org/development/backend/autorun.html