Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit 451ba975 authored by rmarchant's avatar rmarchant Committed by GitHub
Browse files

Merge pull request #6 from guillaumewuip/macos

Add macOS launchDaemons file and instruction
parents d61e8d6c 242ee3d1
Branches
No related tags found
No related merge requests found
......@@ -19,3 +19,12 @@ You can then run the script as a cron job :
```
*/15 * * * * python /home/user/gandi-ddns.py
```
macOS
```
cd gandi-ddns
ln -s $(pwd) /usr/local/gandi-ddns
sudo cp gandi.ddns.plist /Library/LaunchDaemons/
sudo launchctl /Library/LaunchDaemons/gandi.ddns.plist
```
<?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>gandi.ddns</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/python3</string>
<string>gandi-ddns.py</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartInterval</key>
<integer>300</integer> <!-- every 5 mins -->
<key>KeepAlive</key>
<false/>
<key>WorkingDirectory</key>
<string>/usr/local/gandi-ddns/</string>
<key>StandardErrorPath</key>
<string>/usr/local/var/log/gandi-ddns/output.log</string>
<key>StandardOutPath</key>
<string>/usr/local/var/log/gandi-ddns/output.log</string>
</dict>
</plist>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment