diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-06-19 13:18:34 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-06-24 11:19:18 +0200 |
commit | 59c9dbe6a3e7caed435b13188cb42354ca577fb4 (patch) | |
tree | 04c02e6ad19eb2c55e00187ad6b01244022fddfb /contrib/examples/launchd/README | |
parent | qemu: show signal when failing (diff) | |
download | wireguard-monolithic-historical-59c9dbe6a3e7caed435b13188cb42354ca577fb4.tar.xz wireguard-monolithic-historical-59c9dbe6a3e7caed435b13188cb42354ca577fb4.zip |
wg-quick: darwin: support being called from launchd
This causes wg-quick up to wait for the monitor to exit before it exits,
so that launchd can correctly wait on it.
Reported-by: Cameron Palmer <cameron@promon.no>
Diffstat (limited to 'contrib/examples/launchd/README')
-rw-r--r-- | contrib/examples/launchd/README | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/examples/launchd/README b/contrib/examples/launchd/README new file mode 100644 index 0000000..67f8d3c --- /dev/null +++ b/contrib/examples/launchd/README @@ -0,0 +1,12 @@ +WireGuard for Launchd +===================== + +The example `com.wireguard.wg0.plist` file may be used for running wg-quick(8) +as a launchd service. Note that the `PATH` variable is modified to point to +the PATH used by Homebrew or Macports, so that it uses the non-system bash(1). + +Usage +----- + +$ sudo cp com.wireguard.wg0.plist /Library/LaunchDaemons +$ sudo launchctl load /Library/LaunchDaemons/com.wireguard.wg0.plist |