Hi @genji, thanks for the comment. Indeed, I would use a systemd user (https://wiki.archlinux.org/title/Systemd/User) service which runs something like:
/bin/bash -c 'while true; do if [[ $(/opt/piavpn/bin/piactl get connectionstate) != "Connected" ]]; then /opt/piavpn/bin/piactl connect; fi; sleep 10; done'
(with ExecStop being /opt/piaivpn/bin/piactl disconnect of course).
I'm not sure if there's a cleaner / easier way to do this. I'm all ears if someone else has an idea :)
Pinned Comments
lobroc commented on 2023-09-20 15:26 (UTC) (edited on 2023-09-20 15:30 (UTC) by lobroc)
Warning: the iproute2 package has updated from version 6.4.0 to 6.5.0, and with it the default rt_tables location has changed from /etc/iproute2/rt_tables to /usr/lib/iproute2/rt_tables. I've rolled out a fix for this change in the latest version. When updating your package, please remove the package, and then reinstall it, so that everything in the piavpn-bin.install gets re-run. You will need to re-run 'sudo systemctl enable --now piavpn.service'
Arvid commented on 2023-02-18 00:39 (UTC) (edited on 2023-02-18 01:07 (UTC) by Arvid)
The client is here:
/opt/piavpn/bin/pia-client
solsticedhiver commented on 2023-02-17 19:16 (UTC) (edited on 2023-02-17 19:41 (UTC) by solsticedhiver)
You need to enable and start piavpn.service. Run
sudo systemctl enable --now piavpn.service
Then pia-client will complete the quick tour guide, and let you login.