From ad55e80771ed0f1308a60c6acaabbc57b0a8f49d Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Mon, 8 Jan 2018 17:00:35 +0100 Subject: [docs] documentation about vpn autostart --- docs/vpn/index.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/vpn/index.rst b/docs/vpn/index.rst index 0ec660fe..e5549895 100644 --- a/docs/vpn/index.rst +++ b/docs/vpn/index.rst @@ -37,3 +37,24 @@ You can list all the configured locations using the CLI:: demo.bitmask.net [US] Seattle, WA (UTC-7) This manual override functionality will be exposed through the UI and the CLI in release ``0.11``. + +Autostart +--------- +Autostart is not implemented yet in the 0.10 versions of Bitmask, but you can probably use +a systemd script to launch vpn. If you have the latest master installed from a debian package:: + + [Unit] + Description=Bitmask VPN + Documentation=https://bitmask.net/en/help + + [Service] + Type=oneshot + WorkingDirectory=/var/run/bitmask + + ExecStart=bitmaskctl vpn start demo.bitmask.net + ExecStop=bitmaskctl vpn stop + + RemainAfterExit=yes + + [Install] + WantedBy=default.target -- cgit v1.2.3