X-Git-Url: https://www.tinc-vpn.org/git/browse?p=wiki;a=blobdiff_plain;f=examples%2Fosx-install.mdwn;h=5a4f7fe3f96bcaf7ffa075fa5f2788ae0ec62f9b;hp=adbf8536d3134cd659f8d4efe941b2fc07834296;hb=a675abca816264bc59af97513a42334681271aa3;hpb=944ea0d2f77ba1338eea683848506780a73a4c90 diff --git a/examples/osx-install.mdwn b/examples/osx-install.mdwn index adbf853..5a4f7fe 100644 --- a/examples/osx-install.mdwn +++ b/examples/osx-install.mdwn @@ -59,25 +59,27 @@ The following example is a plist file for the tinc network name: myvpn */Library/LaunchDaemons/myvpn.tinc.plist*: - - - - - KeepAlive - - Label - tinc.myvpn - ProgramArguments - - /opt/local/tinc/sbin/tincd - -n - myvpn - -D - - - - -This will configure tincd to start the myvpn configuration in the foreground (-D). If tincd is started as background daemon, launchd will not function correctly with tinc. Launchd will directly start tincd if this file is found. The KeepAlive element will ensure that tincd is always running, and to be restarted if it stops. To stop tincd, use the *launchctl* command. Some commands to remember are: +``` + + + + + KeepAlive + + Label + tinc.myvpn + ProgramArguments + + /opt/local/tinc/sbin/tincd + -n + myvpn + -D + + + +``` + +This will configure tincd to start the myvpn configuration in the foreground (-D). If tincd is started as background daemon, launchd will not function correctly with tinc. Launchd will directly start tincd if this file is found. The `KeepAlive` element will ensure that tincd is always running, and to be restarted if it stops. To stop tincd, use the *launchctl* command. Some commands to remember are: launchctl unload -w /Library/LaunchDaemons/myvpn.tinc.plist