The Code Kitchen

#

Simple git-daemon launchd script

Here is a simple launchd script to run git-daemon under launchd on Leopard. Edit the XML to tweak any options, it's self-explanatory.

You'll need to change at least the UserName and --base-path options to match your configuration. Don't forget to touch git-daemon-export-ok in each repository you want to export. See git-daemon(1) for more info.

> sudo mv cz.or.git.git-daemon.plist /Library/LaunchDaemons/
> sudo chown root:wheel /Library/LaunchDaemons/cz.or.git.git-daemon.plist
> sudo launchctl load /Library/LaunchDaemons/cz.or.git.git-daemon.plist

#

Comments? Feedback? Drop me a line.

My name is Brian Palmer. I'm a software developer at Instructure. Sometimes I post on this site. Other times I post on Facebook instead. Sometimes elsewhere. I have a Twitter account, but I've never tweeted. And yet I have 28 followers?


I live in Salt Lake City, which is a really cool town. Plus, mountains! I'm terrible at introductions, so if you have questions or feedback just drop me an email.


Oh, about the name: I write software and I love food. That's all it means.

Lorem Cookies

cookiesLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.