If you are using Subversion and utilizing the native svn server with SVNSERVE, I’m sure you’ve noticed that the Command Line window needs to stay open in order to keep the server alive.
A simple remedy is to set it up as a Windows Service. Most will recommend FireDaemon, which is a great program. If you don’t want to get into adding any extra software, you can use the SC command built in with Windows 2003 and XP.
Just use the following command:
sc create “svnserve” binpath= “C:Program FilesSubversionbinsvnserve –service -r f:repos” displayname= “Subversion Repository” depend= Tcpip start= auto
But remember to update the path to Subversion if you didn’t use the default, and of course, your Repository path.
The service is looking at the root path you specify with -r. That will be the root of your SVN server. So when you point to a Repository it will look something like this:
If you need to run mulitple instances and point them to different root paths you need to approach that differently. Same concepts apply just specify a differnt listening port and service name.
You’re command would now have an additional switch and a unique service name:
sc create “svn-pub” binpath= “C:Program FilesSubversionbinsvnserve –service -r f:pubrepos –listen-port=8080” displayname= “Subversion Repository” depend= Tcpip start= auto