Created
May 7, 2015 18:00
-
-
Save iflamed/cf3ad1ea8fd6e5c59e36 to your computer and use it in GitHub Desktop.
a plist file for mac os x launchctl damoen
This file contains hidden or 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>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> |
Author
iflamed
commented
May 7, 2015
- install chinadns
- add plist above to /Library/LaunchDaemons
- 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