diff options
| author | Emīls <emils@mullvad.net> | 2021-03-15 16:03:19 +0000 |
|---|---|---|
| committer | Emīls <emils@mullvad.net> | 2021-03-17 13:45:48 +0000 |
| commit | bd921203803d95224c8a0f27d61b0bfbd2b64dd2 (patch) | |
| tree | 6bc69d4df708ab5744e83db132a515eca9758cf9 | |
| parent | 1dfba05f5761421552b94d1d55029142872af1c6 (diff) | |
| download | mullvadvpn-bd921203803d95224c8a0f27d61b0bfbd2b64dd2.tar.xz mullvadvpn-bd921203803d95224c8a0f27d61b0bfbd2b64dd2.zip | |
Add env var tips and tricks
| -rw-r--r-- | README.md | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -434,6 +434,37 @@ echo "org.gradle.jvmargs=-Xmx4608M" >> ~/.gradle/gradle.properties servers are used. * `TALPID_DISABLE_OFFLINE_MONITOR` - Forces the daemon to always assume the host is online. +#### Setting environment variable +- On Windows, one can use `setx` from an elevated shell, like so + ```bat + setx TALPID_DISABLE_OFFLINE 1 /m + ``` + For the change to take effect, one must restart the daemon + ```bat + sc.exe stop mullvadvpn + sc.exe start mullvadvpn + ``` + +- On Linux, one should edit the systemd unit file via `systemctl edit mullvad-daemon.service` and edit + it like so + ```systemd + [Service] + Environment="TALPID_DISABLE_OFFLINE_MONITOR=1" + ``` + For the change to take effect, one must restart the daemon + ```bash + sudo systemctl restart mullvad-daemon + ``` + +- On macOS, one can use `launchctl` like so + ```bash + sudo launchctl setenv TALPID_DISABLE_OFFLINE_MONITOR 1 + ``` + For the change to take effect, one must restart the daemon + ```bash + launchctl unload -w /Library/LaunchDaemons/net.mullvad.daemon.plist + launchctl load -w /Library/LaunchDaemons/net.mullvad.daemon.plist + ``` ## Building and running the desktop Electron GUI app |
