I've been experimenting with AirVPN over the last the days and am now quite satisfied with how it working (after a few false starts).
I'm running an Ubuntu 16.04 LTS VirtualBox VM (on top of a Ubuntu 16.04 LTS host). The host is primarily there to run Plex and I couldn't figure out a way to get Plex to run outside the VPN so downloaders in a VM seemed the best solution. The VM also runs a proxy to allow my Windoes desktop to connect out via the tunnel.
AirVPN gets started using the @reboot sudo clause in my own crontab so is basically running in the background as root.
me 1271 1114 0 09:04 ? 00:00:00 /bin/sh -c sudo airvpn --cli --connect >> /tmp/airvpn.log 2>&1root 1275 1271 0 09:04 ? 00:00:00 sudo airvpn --cli --connectroot 1387 1275 0 09:04 ? 00:00:00 /bin/bash /usr/bin/airvpn --cli --connectroot 1390 1387 0 09:04 ? 00:00:03 mono /usr/lib/AirVPN/AirVPN.exe --path=/home/me/.airvpn --cli --connectroot 1781 1390 0 09:05 ? 00:00:10 /usr/sbin/openvpn --config /home/me/.airvpn/f5cf44fc92e8492acd5262160693fdbafb0b3319e78739756995b1f58752b675.tmp.ovpn
If I just kill the processes then /etc/resolve.conf doesn't get restored to its default value, although I can manually restore it.
So, the problem I have is how to shut down AirVPN gracefully? Is there a signal I can send the Mono app or is there a shutdown type command?