I have openvpn config that users 2 factor authentication.
If I start it manually, by running:
/usr/sbin/openvpn --writepid /run/whatever --cd /etc/openvpn/ --config /etc/openvpn/work.conf
it asks for username, then password (provided by software on my phone), and then password for private key. And then it works.
But if/when I try to start it via normal service call:
=# service openvpn start work
nothing is printed, openvpn doesn't work, and journalctl shows:
=# systemctl status openvpn ● openvpn.service - OpenVPN service Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: enabled) Active: active (exited) since czw 2015-05-28 10:24:22 CEST; 17min ago Process: 30395 ExecStart=/bin/true (code=exited, status=0/SUCCESS) Main PID: 30395 (code=exited, status=0/SUCCESS) CGroup: /system.slice/openvpn.service maj 28 10:24:22 krowka systemd: Starting OpenVPN service... maj 28 10:41:40 krowka systemd: Started OpenVPN service.
Is there anything I could do to make it work "normally", via "service" call, or any other mean, other than manually building /usr/sbin/openvpn invocation?