*/Library/LaunchDaemons/myvpn.tinc.plist*:
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
- <plist version="1.0">
- <dict>
- <key>KeepAlive</key>
- <true/>
- <key>Label</key>
- <string>tinc.myvpn</string>
- <key>ProgramArguments</key>
- <array>
- <string>/opt/local/tinc/sbin/tincd</string>
- <string>-n</string>
- <string>myvpn</string>
- <string>-D</string>
- </array>
- </dict>
- </plist>
-
-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 <key>KeepAlive</key> 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:
+```
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>KeepAlive</key>
+ <true/>
+ <key>Label</key>
+ <string>tinc.myvpn</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string>/opt/local/tinc/sbin/tincd</string>
+ <string>-n</string>
+ <string>myvpn</string>
+ <string>-D</string>
+ </array>
+</dict>
+</plist>
+```
+
+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 `<key>KeepAlive</key>` 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