Add Svn-service to the Windows service

Source: Internet
Author: User

is not every time the cmd to start the SVN service, when you hit the svnserve-d-R warehouse Path, the black box you can not turn off, psychological is not very uncomfortable? It doesn't matter, we can add the Svnserve command to the Windows service, and set it up as self-booting without having to hit the command to start every day.


First, let's familiarize ourselves with the command format for adding services, taking the SVN installation path in My computer and the path to the SVN repository as an example:

SC Create svn binpath= "D:\SVN\bin\svnserve.exe--service-r E:\repository\svn" displayname= "Svn-service" Start=auto DEP End=tcpip


Where you need to be aware:

There are spaces between 1:binpath= and paths, and diaplayname= and paths.

2:D:\SVN\bin\svnserve.exe, this is the full path of your SVN under Svnserve.exe.

3:E:\REPOSITORY\SVN, this is the full path of your SVN repository.

4:Start=auto, self-priming.

5:Depend=tcpip, dependency is the TCP/IP protocol.


Each service depends more or less on other services, such as randomly selecting a Windows service:



Now that the command format is known, we can add to the service.



Failed? Don't be surprised, permissions are a problem. To add services to the system, you must have administrator privileges.

Run DOS with Administrator privileges



To make sure it has become, we go to the Windows service to find out.



Yes, we have successfully added the service.

Add Svn-service to the Windows service

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.