Prevent OpenVPN from being restarted on 'backup' node

Started by effin_dead_again, May 14, 2021, 05:07:24 PM

Previous topic - Next topic
Hi all

I would like to see if it is possible to prevent the OpenVPN Server from being restarted on the backup node when a configuration sync occurs. I am only using the configuration sync to copy users and certificates from primary to secondary, so that I may have a multi-server OpenVPN 'farm'. I am not using any of the CARP or active/passive features, I just want to sync users and certificates from the primary opnsense server to the secondary opensense server.

I started going down the code rabbit hole and I ended up here as the final stop on my journey, but I can't see where the command to restart OpenVPN is occurring.

I also followed the advice here and that did not affect the restarting of the service.

Any ideas or thoughts are appreciated. Thanks!

Even if it's just pointing me at the file/line of code that sends the restart command to openVPN when a sync occurs, I can take it from there, I'm pretty handy when it comes to hacking on scripts.