Enable SVN to run automatically as a Windows system service

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.