[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

BOOK - svnserve and inetd information

From: Steve Karg <steve_at_kargs.net>
Date: 2004-03-11 22:59:52 CET

Hello,

In getting svnserve to work with inetd, I had to dig outside of the
manual a bunch, so here are some things I think you should add to the
manual (probably near chapter 6. "Server Configuration", under
"svnserve, a custom server", although I am not sure where to talk about
the installation (but since the installation details are needed in the
inetd info, I included them):

I installed it on a debian box (knoppix):

$ apt-get install subversion subversion-tools

I created an svn user and cleaned out the directory. This gives me an
svn user (not root) for the inetd to run under, and a simple place to
create the repository:

$ sudo adduser svn
$ sudo rm -rf /home/svn
$ sudo mkdir /home/svn
$ sudo chown svn:svn /home/svn

I created the repository:
$ su - svn
$ svnadmin create repository

I modified the svnserve.conf configuration file in the repository/conf
directory:

[general]
anon-access = write

This allows me to test my installation before locking it down.

I inspected /etc/services for port 3690 and it had the following lines
already in it:

svnserve 3690/tcp svn subversion # Subversion protocol
svnserve 3690/udp svn subversion

In order to have inetd launch the process, I had to add the following to
the /etc/inetd.conf file:

svnserve stream tcp nowait svn /usr/sbin/tcpd /usr/bin/svnserve --inetd
--root=/home/svn/repository

And restart the inetd daemons:

$ sudo /etc/init.d/inetd restart

I then ran the following to test the installation:

$ svn list svn://localhost/

Since there are no projects imported, I should get a blank list, and no
errors.

Hope this helps someone reading the book,

Steve

-- 
http://www.kargs.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 11 23:36:42 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.