-
-
Save daiooo/1a4861dd50810fd37cea5a5bb67a07f5 to your computer and use it in GitHub Desktop.
ts-dns install in macOS
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
echo "\n DNS.Local install in macOS\n" | |
sudo cat > /Library/LaunchDaemons/dns.plist <<END | |
<?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>dns</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>./overture</string> | |
<string>-c</string> | |
<string>./config.json</string> | |
<string>-l</string> | |
<string>/tmp/overture.log</string> | |
</array> | |
<key>KeepAlive</key> | |
<true/> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>WorkingDirectory</key> | |
<string>/Users/d/Dropbox/p/dns/</string> | |
<key>StandardErrorPath</key> | |
<string>/tmp/dns.error.log</string> | |
<key>StandardOutPath</key> | |
<string>/tmp/dns.log</string> | |
</dict> | |
</plist> | |
END | |
plutil /Library/LaunchDaemons/dns.plist | |
sudo launchctl load -w /Library/LaunchDaemons/dns.plist | |
sudo launchctl start dns | |
sudo launchctl list | grep dns |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment