Thursday, January 18, 2007

SVN as a service under Windows

Found this great article on how to run subversion as a service (check my other post on installing subversion (SVN)).

Basically it explains how to use the "sc" (Service Control) which is provided by Windows OS to crete a service to run the svnserve command. This should work on Windows NT, XP, 2000 and 2003 Server.

It should look like something like this:

sc create [name]
binpath= "c:\svn\bin\svnserve.exe --service [svn-args]"
displayname= "Subversion Repository"
depend= Tcpip

If you are not comfortable in doing this, you can always try running svnservice, which is a project from tigris intended to "offer a comfortable way to run svn server (svnserve.exe) as MS Windows service".

No comments: