Skip to content

Instantly share code, notes, and snippets.

@josephtaylor
Last active January 23, 2020 15:00
Show Gist options
  • Save josephtaylor/0fc566de1721c8af0ae0cbf0c0cb7f86 to your computer and use it in GitHub Desktop.
Save josephtaylor/0fc566de1721c8af0ae0cbf0c0cb7f86 to your computer and use it in GitHub Desktop.
Vypervpn CLI on Ubuntu 18.04 Bionic

Fixing ViperVPN CLI on Ubuntu 18.04

These are the steps I took to get the vypvrvpn CLI tool working on Ubuntu 18.04

Step 1: Fix the systemd service file

Edit /etc/systemd/system/vyprvpn.service so the contents are:

[Unit]
Description=VyprVPN Manager
Requires=network.target local-fs.target
After=network.target local-fs.target

[Service]
Type=simple
ExecStart=/usr/sbin/vyprvpn_service
ExecStop=/usr/bin/killall vyprvpn_service
RestartSec=5
Restart=always

[Install]
WantedBy=multi-user.target

The only change is on line 9 of the file. killall becomes /usr/bin/killall.

Step 2: Fix the init script

edit /etc/init.d/vyprvpn
remove or comment out the part that sources the function library (which doesn't exist in 18.04)

# Source function library.
. /etc/rc.d/init.d/functions

Step 3: restart the systemctl daemon

sudo systemctl daemon-reload

Step 4: restart the vyprvpn service (might not be necessary)

sudo service vyprvpn restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment