Method 1:
Svnservice (using SVN as a tool for running Windows Services)
SVN service wrapper for Windows
This is my Win32 service wrapper for SVN. Source is pinned ded, and its in the public domain. No need to copyright this stuff.
Usage instructions:
Svnservice -? To display this list
Svnservice-install <svnserve parameters> to install the service
Svnservice-setup <svnserve parameters> to change command line parameters for svnserve
Svnservice-remove to remove the service
Svnservice-Debug to run as a console app for debugging
Place svnservice.exe in the bin directory of subversion.
Example:
For example, if all your projects are under E:/svnrepo, you can
Use svnservice-install-d-r e:/svnrepo for Installation
Svnservice-setup-d-r e:/otherplace/svnrepo
If you access one of the projects E:/svnrepo/project1, you can specify the path
SVN: // localhost/project1 (Note: Used as a URL /)
After the first installation, manually start it in the service,
Or set it to automatic start in the service so that the service is automatically started every time the machine starts.
|
File: |
Svnservice.rar |
Size: |
23kb |
Download: |
Download |
|
Method 2:
The Subversion starts from version 1.4 and runs automatically at startup as a Windows system service. However, the Subversion installer cannot install itself as a Windows service. We need to manually install it as follows: open a DOS command window and execute the following command:
SC create svnserve binpath = "/" C:/program files/subversion/bin/svnserve.exe/"-- service -- root E: /SVN -- listen-port 3691 "displayname =" Subversion repository "depend = TCPIP start = auto
SC is a service configuration program that comes with Windows. The binpath parameter indicates the installation path of the svnserve executable file. Because "Program Files" in the path contains spaces, therefore, the entire path must be enclosed in double quotation marks. Double quotation marks are special characters and need to be transferred. Therefore, the two double quotation marks before and after the path must be written/"
-- Service parameter indicates running in the form of a Windows service. -- root indicates the location of SVN repository, and both service‑and root‑are binpath‑because the path with svnserve.exe is included in a pair of double quotation marks, which do not need to be escaped.
Displayname indicates the name displayed in the Windows Service list. Depend = TCPIP indicates that the svnserve service requires the TCPIP service to run, and start = auto indicates that the service runs automatically after it is started.
After the service is installed, svnserve will not run automatically until the next boot.
To uninstall the svn service, runSC Delete svnserveYou can.