Skip to content

Instantly share code, notes, and snippets.

@iflamed
Created May 7, 2015 18:00
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save iflamed/cf3ad1ea8fd6e5c59e36 to your computer and use it in GitHub Desktop.
Save iflamed/cf3ad1ea8fd6e5c59e36 to your computer and use it in GitHub Desktop.
a plist file for mac os x launchctl damoen
<?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>com.shadowsocks.chinadns</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/chinadns</string>
<string>-l</string>
<string>/Applications/ChinaDNS/iplist.txt</string>
<string>-c</string>
<string>/Applications/ChinaDNS/chnroute.txt</string>
<string>-s</string>
<string>114.114.114.114,208.67.222.222:443,8.8.8.8</string>
<string>-m</string>
</array>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
@iflamed
Copy link
Author

iflamed commented May 7, 2015

  1. install chinadns
brew install chinadns-c
  1. add plist above to /Library/LaunchDaemons
  2. sudo launchctl load com.shadowsocks.chinadns.plist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment