Windows automatically starts the SVN Service
Create autoRunSVN. bat file, content: sccreateMySVNServerbinpath = "\" C: \ ProgramFilesSubversion \ svnserve \ "-- service-rH: \ homerepos" displayname = "SVNService" depend = Tcpipstart = autopause
Note:
(1) SC is the service configuration program that comes with windows, and MySVNServer is the service name, which seems useless.
(2) The binPath parameter indicates the installation path of the svnserve executable file. Because "ProgramFiles" in the path contains spaces, double quotation marks are required for the entire path. 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 \".
The path of the pair is included in a pair of double quotation marks, which do not need to be escaped.
(4) When Windows starts the SVN service automatically, you must also note that displayname indicates the name displayed in the windows Service list. depend = Tcpip indicates that the tcpip service is required to run the svnserve service, start = auto indicates that it runs automatically after startup. After the service is installed, svnserve will not run automatically until the next boot.
(5) There is no space before the equal sign of binPath, and there is a space behind the equal sign. displaynamedependstart is also the same as that before service --, not-, and front of r is-
(6) to uninstall the svn service, run scdeletesvnserve on www.2cto.com.
(7) from "SC" to "auto" is in the same command SC and must be written in the same line. After the creation is successful, you can type service. msc in the run to view the system service, find the SVNService item, view the properties of the service, and use the interface provided by Windows to operate the SVNService.
You can also use the command line to start or stop the SVN service.
Start SVN service: C :\> netstartsvnserviceSVNService is starting. SVNService has been started successfully.
Stop Service: C: \> netstopsvnserviceSVNService is stopping. SVNService has been stopped successfully.
Delete the created Service C: \> scdeletesvnsvnservice. This section describes how to automatically start the SVN service after Windows is started.
From tearsmo's column