Last active
March 30, 2020 23:31
-
-
Save vmvz/5a557ca610aa9f76b9244a51374b729b to your computer and use it in GitHub Desktop.
dns.overture 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 "\ndns.overture install in macOS\n" | |
sudo cat > /Library/LaunchDaemons/dns.overture.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.overture</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/overture/</string> | |
<key>StandardErrorPath</key> | |
<string>/tmp/dns.overture.error.log</string> | |
<key>StandardOutPath</key> | |
<string>/tmp/dns.overture.log</string> | |
</dict> | |
</plist> | |
END | |
plutil /Library/LaunchDaemons/dns.overture.plist | |
sudo launchctl load -w /Library/LaunchDaemons/dns.overture.plist | |
sudo launchctl start dns.overture | |
launchctl list | grep dns |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment