> My guess is that systemd starts OpenVPN too early before the network is brought
> up sufficiently. Running 'sudo systemctl edit --full openvpn' and adding
> 'Wants=network-online.target' does not change that behaviour.
I tried this to test:
[Unit]
(...)
After=syslog.target network-online.target
Wants=network-online.target
> My guess is that systemd starts OpenVPN too early before the network is brought network- online. target' does not change that behaviour.
> up sufficiently. Running 'sudo systemctl edit --full openvpn' and adding
> 'Wants=
I tried this to test: online. target online. target
[Unit]
(...)
After=syslog.target network-
Wants=network-
It then worked. Can you give that a shot?
Upstream adopted a mixed approach and split the services into a server and client part, and adopted different after/wants values for each (see https:/ /github. com/OpenVPN/ openvpn/ commit/ 28bd79ac980488d bfce2e8136287e3 8c6f35a043)
I don't think we can take an approach as the above for a stable release update, though.