Created
June 3, 2011 16:23
-
-
Save reidransom/1006630 to your computer and use it in GitHub Desktop.
OS X startup item for gollum
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"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.b2-studios.b2postwiki</string> | |
<key>OnDemand</key> | |
<false/> | |
<key>UserName</key> | |
<string>admin</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/Users/admin/bin/gollumstart</string> | |
</array> | |
</dict> | |
</plist> |
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
#!/bin/bash | |
export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
gollum -p 8080 /Users/admin/Sites/b2postwiki |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This assumes gollum has been installed via MacPorts and the wiki repo is located in
/Users/admin/Sites/b2postwiki
.Install
com.b2-studios.b2postwiki.plist
should be placed in/Library/LaunchAgents/
Issues
The
gollumstart
script should not be needed but it didn't seem worth the time to figure out how to modify the path from within the .plist file.