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

xinetd.conf file for svnserve

From: Greg Matheson <lang_at_ms.chinmin.edu.tw>
Date: 2004-04-12 08:57:24 CEST

I have installed subversion from the RPMs on a RedHat-9.0
system. I have permissions and ownership set up OK for a
user svn and group svn, so I can checkout and commit as another
user on the system directly using the file:/// URL and
have a working copy directory with files that belong to
that user and the user's group.

I also can access the repository through svnserver over
an SSH tunnel.

However I am having trouble launching svnserve from xinetd.

[dv_at_momotaro temp]$ svn co svn://momotaro/usr/local/svn/repos/wt
svn: Can't read from connection: Connection reset by peer
[dv@momotaro temp]$

I get these messages in /var/log/messages

Apr 12 14:12:41 momotaro xinetd[1714]: Deactivating service svn due to excessive
 incoming connections. Restarting in 30 seconds.
Apr 12 14:13:11 momotaro xinetd[1714]: Activating service svn

This is what I have in /etc/xinetd.conf/svn

sudo less /etc/xinetd.d/svn
# default: on
# description: The subversion server is a good addition to an ftp server, as it
\
# allows version control, like cvs etc.
service svn
{
        disable = no
        socket_type = stream
        wait = yes
        user = svn
        server = /usr/bin/svnserve
        server_args = -d
        log_on_failure += USERID
        instances = UNLIMITED
}
/etc/xinetd.d/svn (END)

I improvised this from the corresponding file for rsync.
But the changes I make to this file, experimenting with socket_type,
server_args, wait, and instances, seem to have little effect.

I need some help on adding a service to xinetd, I guess. Having
an rc file for a svn daemon I could drop in to /etc/init.d would be
nice too.

-- 
Greg Matheson, Taiwan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Apr 12 08:28:44 2004

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

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