SVNserve giving Error 1053 The service did not respond to the start or control request

你离开我真会死。 提交于 2019-12-03 17:14:38

I got it working

The solutions was to deleted the service I already created, and then followed the following instructions on tortise svn website.

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-serversetup-svnserve.html

I created the service with the following command
sc create svnserve binpath= "\"C:\Program Files\SlikSvn\bin\svnserve.exe\" --service --root C:\SVNReposities" displayname= "Subversion" depend= tcpip start= auto

and the resulting registry entry was
"C:\Program Files\SlikSvn\bin\svnserve.exe" --service --root C:\SVNReposities

I believe the problem was I didn't escape the double quotes correctly when creating the service. This caused the register entries to be created incorrectly and the DisplayName, depend and start were left on the end of the ImagePath Registry entry.

The end result was when SVN Serve started, it consumed the the entire line as the root directory which couldn't be found causing the service to not start.

Couple things about your answer:

  1. Jeff Atwood used "-r" and you used "--root". I'm not sure if that makes a difference or not
  2. The other difference is that you added a "\ in front of "C:\Program Files..... According to Subversion docs that does make a difference. (see below)

sc create svnserve binpath= "c:\svnserve\svnserve.exe --service --root c:\repos" displayname= "Subversion" depend= tcpip start= auto

If any of the paths include spaces, you have to use (escaped) quotes around the path, like this:

sc create svnserve binpath= "\"C:\Program Files\Subversion\bin\svnserve.exe\" --service --root c:\repos" displayname= "Subversion" depend= tcpip start= auto

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!