Last active
December 30, 2015 20:09
-
-
Save mcav/7879144 to your computer and use it in GitHub Desktop.
Launch ArbPL at startup, and keep it running forever.
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
<!-- | |
Install with: | |
mkdir -p ~/Library/LaunchAgents | |
curl -o ~/Library/LaunchAgents/com.mcav.arbpl.plist https://gist.github.com/mcav/7879144/raw | |
launchctl load -w ~/Library/LaunchAgents/com.mcav.arbpl.plist | |
To stop: | |
launchctl unload ~/Library/LaunchAgents/com.mcav.arbpl.plist | |
--> | |
<?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> | |
<key>Label</key> | |
<string>com.mcav.arbpl</string> | |
<!-- run the following program; the shell trickery allows | |
shell expansion and makes it easier to understand --> | |
<key>ProgramArguments</key> | |
<array> | |
<string>sh</string> | |
<string>-c</string> | |
<string>/bin/zsh -c 'cd ~/moz/gelam/arbitrarypushlog; ./webserve'</string> | |
</array> | |
<!-- run on startup --> | |
<key>RunAtLoad</key> | |
<true/> | |
<!-- restart it automatically --> | |
<key>KeepAlive</key> | |
<dict> | |
<!-- only if it exits with a non-zero status code --> | |
<key>SuccessfulExit</key> | |
<false/> | |
</dict> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment