{{tag>Brouillon}} # Pb OpenVPN démarrage service Voir [[http://unix.stackexchange.com/questions/148990/using-openvpn-with-systemd|Using OpenVPN with systemd]] On jette un œil ~~~bash dpkg -L openvpn |egrep 'systemd.*service$' ~~~ On a la commande ~~~bash /usr/sbin/openvpn --status /run/openvpn/client.status 10 --cd /etc/openvpn --config /etc/openvpn/client.conf ~~~ Manuellement ça marche (interface réseau tun, ping...) `Ctrl + C` ~~~ # systemctl status openvpn@vpn.service # systemctl start openvpn@vpn.service Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/vpn.conf ~~~ `/etc/default/openvpn` ~~~ini # If you're running systemd, changing this variable will # require running "systemctl daemon-reload" followed by # a restart of the openvpn service (if you removed entries # you may have to stop those manually) # AUTOSTART="all" ~~~ Solution ~~~bash systemctl daemon-reload service openvpn reload service openvpn@client reload ~~~ Si encore pb, penser à utiliser des chemins absolus dans le fichier de conf et s'assurer que l'extension (.conf ou .ovpn !?) soit bonne