I have a VPN tunnel working from an Ubuntu server (version 16.04) when I run
openvpn seems to start from the init.d script when rebooting as I get this response from running
● openvpn.service - OpenVPN service Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: enabled) Active: active (exited) since Sat 2016-11-19 22:47:26 GMT; 30min ago Process: 1116 ExecStart=/bin/true (code=exited, status=0/SUCCESS) Main PID: 1116 (code=exited, status=0/SUCCESS) Tasks: 0 Memory: 0B CPU: 0 CGroup: /system.slice/openvpn.service
Nov 19 22:47:26 ubuntu systemd: Starting OpenVPN service... Nov 19 22:47:26 ubuntu systemd: Started OpenVPN service. Nov 19 22:48:32 ubuntu systemd: Started OpenVPN service.
Which to me looks as if it started successfully.
However, the tunnel is not working (can't ping in or out).
If I issue the command
then the tunnel appears to start working.
What should I be doing to make sure openvpn starts properly on reboot? The server is often unattended so it is important the VPN restarts automatically on reboot.