Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.plist file for GrowthForecast daemon.
<?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>
<!-- Contains a unique string that identifies your daemon to launchd.
This key is required. -->
<key>Label</key>
<string>io.github.kazeburo.GrowthForecast</string>
<!-- Change working directory -->
<key>WorkingDirectory</key>
<string>/Users/matsu/GrowthForecast</string>
<!-- Contains the arguments [to exec()] used to launch your daemon.
This key is required. -->
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>/Users/matsu/GrowthForecast/cron.sh</string>
</array>
<!-- This optional key specifies the user to run the job as. This key
is only applicable when launchd is running as root. -->
<key>UserName</key>
<string>matsu</string>
<!-- low priority -->
<key>Nice</key>
<integer>20</integer>
<key>LowPriorityIO</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment