SVNService No Longer Needed with Subversion 1.4

I'm reinstalling all my software (got a new PC at work - whoohoo!) and was digging around for SVNService - a wrapper that allowed you to run SVN as a Windows service. All the links I found on Google were dead and I thought I was hosed until I found this:

Windows Service Support for svnserve

svnserve can now be run as a native Windows service. This means that the
service can be started at system boot, or at any other time, without the
need for any wrapper code to start the service.

Please note this applies to 1.4 and I'm assuming all versions moving forward.

Here is what I ran (WinXP):

CODE:
  1. sc create svn.local binpath= "\"c:\program files\subversion\bin\svnserve.exe\" --service --root D:\svnrepo" displayname= "Subversion Repository" depend= Tcpip

Once you run this - you will need to actually start the service - either via the Windows Service GUI or hit the command line and do a 'net start/stop yourservicename'

Important Update: 12/14/2006

Ray Camden notes that you have to type in the command exactly as shown above - with a space after each equals sign:

Yes: option= [space] "value" option2= [space] "value"
No: option="value" option2="value"

9 Comments

  1. Posted November 2, 2006 at 2:04 pm | Permalink

    Great, works for me!

  2. Brian
    Posted November 8, 2006 at 3:14 pm | Permalink

    Wow, thanks a bunch! I was poking around a week ago and hit dead ends like you did.

  3. David
    Posted February 21, 2007 at 7:26 pm | Permalink

    Thank you, just what I needed!

  4. Posted April 4, 2007 at 9:09 am | Permalink

    Thanks!!!

  5. Lars
    Posted April 16, 2007 at 7:50 am | Permalink

    For me it worked better with “%ProgramFiles%\Subversion\bin\svnserve.exe”, that way you don’t have to escape the “.

  6. Posted November 20, 2007 at 2:28 pm | Permalink

    Thank you so much. Plain and simple instructions are so very helpful!

  7. Posted May 9, 2008 at 8:01 am | Permalink

    Thanks you so much!!! ;)

  8. Posted May 15, 2008 at 11:59 am | Permalink

    Make sure you include the spaces after the equals sign. I wasted about an hour because of this. Never thought spaces mattered that much…

  9. Posted May 15, 2008 at 12:08 pm | Permalink

    @Tor - I’ve edited the post a bit to make the space issue a bit more clear.

6 Trackbacks

  1. [...] read more | digg story [...]

  2. [...] document I had it in, I was searching for the links to the files and I came across a post on THECRUMB.COM which states from subversion 1.4 whereby you can install the service without the need for a [...]

  3. By Running Subversion as Windows Service on November 26, 2007 at 8:41 pm

    [...] to Google it and found some other new way to configure the svnserve as service. I then tried this post and combined it with other people suggestion and it just [...]

  4. [...] SVNService No Longer Needed with Subversion 1.4 [...]

  5. [...] Note that the SVNService wrapper being referred to is no longer necessary. Instead, check this out: http://www.thecrumb.com/2006/1.....ersion-14/. Here, the author denotes steps to setup an NT service with no downloads necessary with subversion [...]

  6. [...] Windows can be tricky, so a few links of advice (article1, article2, article3) may come in handy. Here is a good tip on installing SVN as a Windows service. Posted in Version Control | Leave a [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

Comments for this post will be closed on 15 May 2009.

Creative Commons License

Copyright © 2007 thecrumb.com. All rights reserved.