Skip to content

Instantly share code, notes, and snippets.

@randy3k
Last active June 20, 2018 05:25
Show Gist options
  • Select an option

  • Save randy3k/353b81160964b98045f4d7aaea79d0c7 to your computer and use it in GitHub Desktop.

Select an option

Save randy3k/353b81160964b98045f4d7aaea79d0c7 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.duckdns.randyimac</string>
<key>ProgramArguments</key>
<array>
<string>curl</string>
<string>-w</string>
<string>\n</string>
<string>-s</string>
<string>https://www.duckdns.org/update?domains=randyimac&amp;token=<TOKEN>&amp;ip=&amp;verbose=true</string>
</array>
<key>StartInterval</key>
<integer>300</integer>
<key>StandardErrorPath</key>
<string>/usr/local/var/log/duckdns.err</string>
<key>StandardOutPath</key>
<string>/usr/local/var/log/duckdns.out</string>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
@randy3k
Copy link
Author

randy3k commented May 8, 2017

launchctl load -w /Library/LaunchDaemons/org.duckdns.randyimac.plist

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