Eth0 not connected- vpn setup issue?

Hi,

I suspect wait for network did as it should, kodi did not start until the network was up, then the autoexec.py. But maybe a issue occurred PIAs end meant a connection to the VPN could not be established.

With the current approach kodi will start once the your network is up, regardless of the VPN connection being up or down. If you went back to systemd, kodi would still start regardless; but the following can be added to the openvpn-client@ systemd unit:

Restart=on-failure
RestartSec=5s

Then openvpn will restart when the connection fails to establish or drop.

Actual you need to create a copy in /etc/systemd/system and make the changes to that, process is done as follows:

sudo cp /lib/systemd/system/openvpn-client@.service /etc/systemd/system/openvpn-client@.service

update the new copy with your favourite text editor, I like vi; so:

sudo vi /etc/systemd/system/openvpn-client@.service

make systemd aware of the change:

sudo systemctl daemon-reload

enable or re-enable the service (based on you previous topic (Stop Openvpn via command line):

sudo systemctl enable openvpn-client@pia_Ireland

remove the autoexec.py & reboot.

Thanks Tom.