AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Subversion installer windows4/28/2023 ![]() In the meantime, it works just fine from cmd.exe. I haven’t bothered digging in to find out how to instruct PowerShell to treat the “Name=” literally. PowerShell tries to interpret it as some sort of assignment. * Note that PowerShell doesn’t grok the “Name=” syntax. You should be able to now browse your repository. ![]() Launch the TortoiseSVN RepoBrowser and enter “svn://server/RepoName”. Now you can start the service via “net start svnserve”. Your firewall might prompt you to grant permission for svnserve.exe to listen on the Subversion port. Last thing you need to do is punch a hole in your firewall to allow connections on the standard svn port, which is TCP 3690. Explicitly grant Full Control to c:\SrcRepos. In Local Security Policy… Local Policies… User Rights Assignment…, grant SvnDaemon the “Log on as a service” privilege. By removing the account from Users, no one can log in using that account and it also removes it from the main log-in screen in Windows XP and Vista. After creating the account, I remove it from the Users group. Sc create svnserve binPath= “\”C:\Program Files\Subversion\bin\svnserve.exe\” –service -r c:\SrcRepos” DisplayName= “Subversion Service” depend= Tcpip start= auto obj= Server\SvnDaemon password= usually use a local computer account, SvnDaemon, for running my repositories. You need to include the computer or domain name (depending on if it’s a local or domain account, respectively).įor my environment, it ends up looking like this: is the user account under which you want to run the service. is the fully-qualified path to the directory that contains all your repositories. You have to surround it with \” to escape the path if it contains spaces. is the fully-qualified path to svnservce.exe. is the name of the service (as used in commands such as net stop ). Sc create binPath= “\”\svnserve.exe\” –service -r ” DisplayName= “Subversion Service” depend= Tcpip start= auto obj= password= Here’s how I typically configure Subversion to run as a service: The equals sign is part of the name and won’t work if the equals sign is omitted or if you insert a space before the equals sign.* Note that the name/value pairs are “Name=” followed by a space followed by “Value”. It is rather quirky, even for command line tools. So you’re stuck using sc.exe, the Service Control command line tool, which ships with various versions of Windows. There is no tool provided to configure the Windows Service. You can find information in the Subversion FAQ as well as a link to a document describing exactly how to set it up. This allows you to access your repository via TortoiseSVN, svn.exe, etc. Subversion 1.4.0 and later support running Subversion directly as a Windows Service. ![]() Having done this a few times before and always ending up scouring the documentation regarding exactly how to enable the options I need, I’m hereby committing it to long-term memory…
0 Comments
Read More
Leave a Reply. |