Content

ramblings of a coldfusion developer

SVNService No Longer Needed with Subversion 1.4

Tuesday 24 October 2006 - Filed under Code

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"

Tagged:

2006-10-24  »  Jim Priest

Talkback x 18

  1. Jason Hoekstra
    2 November 2006 @ 2:04 pm

    Great, works for me!

  2. Brian
    8 November 2006 @ 3:14 pm

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

  3. David
    21 February 2007 @ 7:26 pm

    Thank you, just what I needed!

  4. SVNService niet meer nodig met Subversion 1.4 « David’s dingen
    7 March 2007 @ 7:35 am

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

  5. Jan Helber
    4 April 2007 @ 9:09 am

    Thanks!!!

  6. Lars
    16 April 2007 @ 7:50 am

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

  7. moopoo.net » Blog Archive » Subversion Server Installation – Win 32
    13 October 2007 @ 7:22 am

    [...] 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 [...]

  8. Chrystal
    20 November 2007 @ 2:28 pm

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

  9. Running Subversion as Windows Service
    26 November 2007 @ 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 [...]

  10. Subversion on Windows, Part IIb: Running SVN as a Service (Vista) « r h e t o r i c a l c o n v e r s a t i o n s
    4 January 2008 @ 3:50 pm

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

  11. lunaru | weblog | thoughts » Blog Archive » Setting up subversion server on a Windows machine.
    5 February 2008 @ 4:06 am

    [...] 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 [...]

  12. Marco´s Professional Blog » Blog Archive » Setting up a version control server
    18 March 2008 @ 12:30 pm

    [...] 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 [...]

  13. Giuseppe Pace
    9 May 2008 @ 8:01 am

    Thanks you so much!!! ;)

  14. Tor
    15 May 2008 @ 11:59 am

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

  15. Jim
    15 May 2008 @ 12:08 pm

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

  16. Max
    2 February 2009 @ 7:53 am

    Thanks a lot! This worked perfectly.

  17. Jordan
    14 October 2009 @ 10:05 pm

    svnserve.exe no longer takes –service as an argument. instead use –daemon.

  18. Setting up subversion server on a Windows machine. - lunaru.com
    16 February 2010 @ 5:53 am

    [...] a repository. Note that the SVNService wrapper being referred to is no longer necessary. Instead, check this out. Here, the author denotes steps to setup an NT service with no downloads necessary with subversion [...]

Share your thoughts

Re: SVNService No Longer Needed with Subversion 1.4







Tags you can use (optional):
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>