Starting openvpn client as daemon - in debian

Ответить
ya
^-^
Сообщения: 2336
Зарегистрирован: 16 дек 2021, 19:56

Starting openvpn client as daemon - in debian

Сообщение ya »

3


[Unit]
Description=Simple Openvpn tunnel

[Service]
Type=simple
ExecStart=/usr/sbin/openvpn --config /etc/vpn/config/myclient.ovpn --daemon

[Install]
WantedBy=multi-user.target
I have this service, I can also enable it but starting is not working. status is giving me this:

● openvpn.service - Simple Openvpn tunnel
Loaded: loaded (/etc/systemd/system/openvpn.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2017-12-08 09:24:32 CET; 3s ago
Process: 29772 ExecStart=/usr/sbin/openvpn --config /etc/vpn/config/client-0-130.ovpn --daemon (code=exited, status=1/FAILURE)
Main PID: 29772 (code=exited, status=1/FAILURE)

Dec 08 09:24:32 s20699657 systemd[1]: Started Simple Openvpn tunnel.
Dec 08 09:24:32 s20699657 systemd[1]: openvpn.service: Main process exited, code=exited, status=1/FAILURE
Dec 08 09:24:32 s20699657 systemd[1]: openvpn.service: Unit entered failed state.
Dec 08 09:24:32 s20699657 systemd[1]: openvpn.service: Failed with result 'exit-code'.
Ответить