Last active
August 29, 2015 14:26
-
-
Save jpillora/8a182b5ccc0676dd6971 to your computer and use it in GitHub Desktop.
Sample launchd startup plist (for starting Mac OSX terminal programs at boot)
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
<?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"> | |
<!-- put this file in /Library/LaunchDaemons/ for root prgrams and ~/Library/LaunchAgents/ for user programs --> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>myprog</string> | |
<key>WorkingDirectory</key> | |
<string>/tmp/</string> | |
<key>Program</key> | |
<string>/usr/local/bin/myprog</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>--foo</string> | |
<string>7</string> | |
<string>--bar=42</string> | |
<string>bazz</string> | |
</array> | |
<key>KeepAlive</key> | |
<true/> | |
<key>StandardOutPath</key> | |
<string>/var/log/myprog.log</string> | |
<key>StandardErrorPath</key> | |
<string>/var/log/myprog.log</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment