从cmdline开始时
svnserve.exe -d -r d:\svn\mytools
一切正常。
然后我试图将其设置为以Windows服务运行:
@echo off
set SvnHome=C:\Program Files\TortoiseSVN
set SvnRepository=D:\Svn\mytools
sc delete SvnMyTools
sc create SvnMyTools binPath= "%SvnHome%\bin\svnserve.exe --service -r %SvnRepository%" start= delayed-auto type= share
服务已安装,但无法启动。它一直报告错误
Error 1083: The executable program that this service is configured to run in does not implement the service.
我曾尝试使用regedit编辑服务cmdline,因此尝试添加双引号arround ref to exe,尝试更改cmdline参数(使用-d代替--service,同时使用-d和--service)等等。有时报告的错误看起来有点不同,但无论如何都不起作用。 :-(
问题是 - 如何设置它使其在Windows 7 x64上作为服务工作?有可能吗?我的意思是 - 如果“ - service”cmdline开关能够在svnserve中工作吗?
注意:svnserve版本是1.7.9(r1462340)。其余的TortoiseSVN组件是1.7.12.24070。
提前致谢。
看起来很好。我的服务器安装了这个二进制路径:
"C:\Program Files\Subversion\svnserve.exe" --service -r "D:\Repositories" --listen-port "3690"
您是否尝试在脚本之外安装它?
我花了一段时间才弄清楚所选择的答案不是最终答案,而是问题的补充。这是要执行的最后一行命令:
sc create svnserve binpath="\"C:\Program Files\TortoiseSVN\bin\svnserve.exe\" --service -r D:\Repositories" displayname="Subversion Server" depend=Tcpip start=auto