Reposado Nightly Syncing
Appearance
This should be saved as tld.domain.reposado_nightsync.plist and placed into /Library/LaunchDaemons. It can then be loaded with launchctl load /Library/LaunchDaemons/tld.domain.reposado_nightsync.plist. Some notes:
- This runs as user Reposado
- Runs at 05:00am every day
- This logs to /var/log/, with the following:
- reposado_nightly.log - Reposado actual log
- reposado_stderr.log - To catch any stderr errors
- reposado_stdout.log - To catch anything on stdout when ran
<?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>tld.domain.reposado_nightsync</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/reposado/reposado/code/repo_sync</string>
<string>--log=/var/log/reposado_nightly.log</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>5</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
<key>UserName</key>
<string>reposado</string>
<key>OnDemand</key>
<true/>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/var/log/reposado_stderr.log</string>
<key>StandardOutPath</key>
<string>/var/log/reposado_stdout.log</string>
</dict>
</plist>