wireguard and systemd

  • Hello,

    I had successfully managed to configured wireguard on rpi3 with newest libreelec.

    However I'm running into an issue when trying to configure systemd in order to start it automatically after reboot. I can easily connect with "connmanctl connect".

    This is my /storage/.config/systemd/wireguard.service

    I enabled it with as etc as described in wiki guide

    I've put * instead my ip.


    Also I get this output when systemctl status wireguard.service:

    Code
    ● wireguard.service - WireGuard VPN Service
       Loaded: loaded (/storage/.config/system.d/wireguard.service; enabled; vendor preset: disabled)
       Active: active (exited) since Thu 2019-04-11 17:28:39 BST; 1 years 0 months ago
      Process: 317 ExecStart=/usr/bin/connmanctl connect vpn_*_*_*_145_vpn_hive (code=exited, status=0/SUCCESS)
     Main PID: 317 (code=exited, status=0/SUCCESS)
    
    Apr 11 17:28:39 elec systemd[1]: Starting WireGuard VPN Service...
    Apr 11 17:28:39 elec connmanctl[317]: Error /net/connman/service/vpn_*_*_*_145_vpn_hive: Method "Connect" with signature "" on inte
    Apr 11 17:28:39 elec systemd[1]: Started WireGuard VPN Service.

    Any one can help Ill be great-full.

    Thanks