pia-foss / desktop

Private Internet Access - Desktop VPN Client for Windows/macOS/Linux
Other
263 stars 50 forks source link

Support runit (Void Linux) service manager #59

Closed mrexox closed 10 months ago

mrexox commented 10 months ago

PIA does not install on Void Linux. I think the Void Linux community is not as big as Arch for example, but it worth adding the support for runit.

Describe the solution you'd like Add support for runit (service manager in Void Linux), so PIA could be installed on Void Linux.

Describe alternatives you've considered Using OpenVPN configs is OK but it's not as convenient as using PIA client.

banister commented 10 months ago

Thanks we'll look into it! Also we're open to accepting PRs on this if you'd like to give it a shot!

mrexox commented 10 months ago

Hey! I'll be glad to create a PR but I cant correctly clone the repo because of this issue: https://github.com/pia-foss/desktop/issues/46.

By the way, I've got a workaround:

  1. Run bash pia-linux-<version>-<revision>.run -- --skip-service
  2. Create a file /etc/sv/piavpn/run
    
    #!/bin/sh

exec /opt/piavpn/bin/pia-daemon


3. `chmod +x /etc/sv/piavpn/run`
4. `ln -s /etc/sv/piavpn /var/service`

Seems to be easy to add suport for runit into installer. Please, help to figure out how to solve #46 :pray: 
banister commented 10 months ago

AH, got it. Thanks @mrexox we’re aware of this issue and hope to address it in the coming weeks as we more heavily focus on shoring up our GitHub repo.