Created
February 12, 2015 20:20
-
-
Save swinton/127b039a1fc31ba65f0b to your computer and use it in GitHub Desktop.
launchd plist for running a SOCKS proxy with an autossh tunnel wotsit.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>swinton.autossh</string> | |
<key>KeepAlive</key> | |
<dict> | |
<key>NetworkState</key> | |
<true/> | |
</dict> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/autossh</string> | |
<string>-M</string> | |
<string>20000</string> | |
<string>-D</string> | |
<string>9999</string> | |
<string>[email protected]</string> | |
<string>-N</string> | |
</array> | |
<key>StandardOutPath</key> | |
<string>/Users/steve/Logs/autossh/autossh.stdout</string> | |
<key>StandardErrorPath</key> | |
<string>/Users/steve/Logs/autossh/autossh.stderr</string> | |
<key>User</key> | |
<string>steve</string> | |
<key>ThrottleInterval</key> | |
<integer>30</integer> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also, this.