svnserve launchd item for OS X 10.4
It's not that straightforward getting svnserve to work under launchd. I can't take the credit for this but I thought it would be useful to have it here on TextSnippets.
1) Install subversion if you don't have it already. Here's how with DarwinPorts.
2) Create your Subversion repository (for my own use, I used /Users/xyz/Repositories) e.g.
3) Place the following XML into a file named org.tigris.subversion.svnserve in the /Library/LaunchDaemons directory.
You'll need to change xyz to your user name ...
4) Test it out by doing a
1) Install subversion if you don't have it already. Here's how with DarwinPorts.
sudo port install subversion
2) Create your Subversion repository (for my own use, I used /Users/xyz/Repositories) e.g.
svnadmin create /Users/xyz/Repositories
3) Place the following XML into a file named org.tigris.subversion.svnserve in the /Library/LaunchDaemons directory.
<?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>Debugkey>/> <key>GroupNamekey> xyz< /string> <key>Labelkey>org.tigris.subversion.svnserve< /string> <key>OnDemandkey>/> <key>Programkey> /opt/local/bin/svnservestring> ProgramArguments< /key> <array> <string>svnservestring>--inetd< /string> <string>--root=/Users/xyz/Repositoriesstring> </array> <key>ServiceDescriptionkey>SVN Version Control System< /string> <key>Socketskey>/key> <dict> <key>SockFamilykey> Listeners< IPv4< /string> <key>SockServiceNamekey>svn< /string> <key>SockTypekey>stream< /string> dict> </dict> <key>Umaskkey>2< /integer> <key>UserNamekey>xyz< /string> <key>inetdCompatibilitykey>/key> <false/> dict> </dict> plist> Wait<
You'll need to change xyz to your user name ...
4) Test it out by doing a
sudo launchctl load /Library/LaunchDaemons/org.tigris.subversion.svnserve sudo launchctl start /Library/LaunchDaemons/org.tigris.subversion.svnserve svn co svn://your.host.name/aModule/In/Your/Repository