Skip to content

Instantly share code, notes, and snippets.

@reidransom
Created June 3, 2011 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reidransom/1006630 to your computer and use it in GitHub Desktop.
Save reidransom/1006630 to your computer and use it in GitHub Desktop.
OS X startup item for gollum
<?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>
#!/bin/bash
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
gollum -p 8080 /Users/admin/Sites/b2postwiki
@reidransom
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment