[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Installing Subversion as a Win32 Service

From: Clay Lenhart <clay_at_lenharts.net>
Date: 2004-03-16 03:05:47 CET

I struggled to find a way to make svnserve.exe a Windows Service and found a way. Other people may find it useful too.

The Subversion server (svnserve.exe) is a command line program, so normally you would have to leave it running on a Windows server while you are logged in. Microsoft has a user defined service (srvany.exe) that you can use to run Subversion without being logged in.

1) Download the appropriate resource kit for your operating system. Windows XP and 2003 is here:
http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

2) Install it.
3) Read the following article on what you are about to do (you will modify the registry, so be careful):
http://support.microsoft.com/default.aspx?scid=kb;en-us;137890
The next steps will describe the same steps as the article, but with the details for Subversion (It wasn't obvious for me)
4) run:
INSTSRV.EXE SvnService "c:pathtoSRVANY.EXE"
5) Run regedit.exe
6) Go to the HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSvnService key
7) Create a Key (ie a folder) in the SvnService folder. Name it Parameters
8) Create a "String Value" in the Parameters folder. Call it Application
9) Type the SvnServe command in the Application value. For me the command is:
"C:Program Filessvn-win32-1.0.0binsvnserve.exe" -d -r "C:Program Filessvn-win32-1.0.0svnrepo"
(include double quotes)
The path that follows "-r" is the path to the SVN respository.
10) Open the services control panel and start the service. You can also make it start automatically from here.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 16 19:12:24 2004

This is an archived mail posted to the Subversion Users mailing list.