This forum is no longer active. Please post your questions to our new community site

Forums Subversion

Server Socket

Subscribe to Server Socket 2 post(s), 2 voice(s)

 
Avatar sphereoid 8 post(s)

Is there any way to change which server socket SVN serve is using?

 
Avatar carlos Administrator 144 post(s)

Hi,

You can change the port where SVN is listening changing the ‘—listen-port’ option in start up scripts.

On Unix systems, replace the value 3690 inside ${installdir}/subversion/scripts/ctl.sh:

SVN_START="${installdir}/subversion/bin/svnserve -d -r /home/carlos/subversion-1.6.12-0/repository --listen-port=3690 --pid-file=$SVN_PIDFILE"

and then restart the server running:

${installdir}/ctlscript.sh restart subversion

On Windows, you need to change the value in this line inside ${installdir}\subversion\scripts\serviceinstall.bat:

"${installdir}\scripts\winserv.exe" install subversion -diplayname "subversion" -start auto "${installdir}\subversion\bin\svnserve.exe" -d --listen-port=3690

and then reinstall the service. You can do this using the script from the command line:

> ${installdir}\subversion\scripts\serviceinstall.bat REMOVE
> ${installdir}\subversion\scripts\serviceinstall.bat INSTALL

I hope it helps

Forums Subversion