Hello again,
I noticed that those two services won't autostart properly.
For example: At the dashboard, the Wireguard service is shown as running (green arrow). However it's not because there isn't a interface created and VPN->WireGuard->Status is blank.
After clicking on the white WireGuard restart symbol on the dashboard, it starts as expected.
Another example: HAProxy is not even shown as running on the dashboard. A click on the "run" symbol solves this.
It's really confusing me...
Are your configurations depending on DNS up and working? I.e. do you use host names instead of IP addresses in WireGuard and/or HAproxy configuration?
That could be a cause and there is currently no fix other than to use IP addresses instead.
Yeah. HAProxy depends on DNS. Even tough UnboundDNS on the same machine.
No, I use just IPs for Wireguard :c
Yeah, but possibly the default route is not yet present, when WG tries to start. What's your Internet connection like?
There is a WG restart if inactive cronjob available, IIRC.
It's cable internet, so there's a modem in front of the OPNsense box.
Hm I see. Is there a reason why there isn't a target like "wait until online" and then start services xyz.
Uhh, where could I find/enable that cronjob? I just see "Renew DNS for WireGuard on stale connections" here.
Hi,
I do have a similar issue that haproxy does not start as I am not using IP Addresses here.
I workarounded it by using monit to check for the service and let monit restart those. So it might take some minutes before haproxy starts but at the end the start is done automatically.
I can't even see in the logs that WireGuard trys to start. I'll look into Monit and report back.
Well Monit works great, except it didn't autostart too, and I found out why... I had a script in /usr/local/etc/rc.syshook.d/start/
which paused a lot of stuff...
I added a configd action for the script & all services came up as expected.
Thanks for the help!