pschmitt / pia-tools

Shell script to automate privateinternetaccess port forwarding and starting/stopping transmission when connected/disconnected and other stuff
https://aur.archlinux.org/packages/pia-tools
GNU General Public License v3.0
132 stars 23 forks source link

Arguement is not resolved from %i #4

Closed christran206 closed 9 years ago

christran206 commented 10 years ago

When executing systemctl start pia@Sweden or any other location, the process fails with the following error

● pia@Sweden.service - PIA OpenVPN connection to Sweden Loaded: loaded (/usr/lib/systemd/system/pia@.service; disabled) Active: failed (Result: exit-code) since Tue 2014-08-05 11:35:06 PDT; 13s ago Process: 450 ExecStart=/usr/sbin/openvpn --auth-nocache --cd /etc/openvpn/pia --config /etc/openvpn/pia/%i.ovpn --daemon openvpn@%i (code=exited, status=1/FAILURE)

Looks to me that somehow the argument isn't being passed in and therefore the %i never gets recognized as something else.

pschmitt commented 10 years ago

What distro are you on? Did you do the install with pia-tools -s ?

pschmitt commented 9 years ago

Has this been resolved since?

christran206 commented 9 years ago

Yes, this is resolved. The error output wasn't the proper error to investigate. I ended up looking to system logs to determine that one of the packages in Archlinux was no longer compatible with OpenVPN. Once the package was rolled back to an old version, it worked again.