SVN SC create command line creation service self-start

Source: Internet
Author: User
Tags portableapps


Today the system was re-installed, and subversion services had to be re-installed. Enter the code as usual:

SC create Svnserve binpath= "D:\PortableApps\svn\svnserve.exe--service-r e:\svn" displayname= "Subversion" depend= TCPIP Start=auto

But there was a hint of the following:

D:\PORTABLEAPPS\SVN>SC Create Svnserve binpath= "D:\PortableApps\svn\svnserve.exe--service-r e:\svn" displayname=  "Subversion" Depend=tcpip start=autocreates a service entry in the registry and service DATABASE.SYNTAX:SC Create [service Name] [binpath=]  ... CREATE OPTIONS:NOTE:The option name includes the equal sign. Type= <own|share|interact|kernel|filesys|rec>       (default = Own) start= <boot|system|auto|demand|disabled >       (default = Demand) error= <normal|severe|critical|ignore>       (default = Normal) binpath=  group=  tag= <yes|no> depend= <dependencies (Separated by= "" (forward= "" slash)) = "" > obj= <accountname| Objectname>       (default = LocalSystem) displayname=  

I checked the registry carefully, there is no service of the same name! Wasted half an hour, only to understand, binpath=, dispalyname=, depend= behind is must have a space. Otherwise, the execution will not succeed. This grammar, too strange ...
So, the correct code should look like this:

SC create Svnserve binpath= "D:\PortableApps\svn\svnserve.exe--service-r e:\svn" displayname= "Subversion" depend= tcpi P start= Auto

So, how did I succeed in doing it? Thinking carefully, the previous code was copied directly from the SVN help: em23:

From:http://zengrong.net/post/457.htm

SVN SC create command line creation service self-start

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.