You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Greg Matheson <la...@ms.chinmin.edu.tw> on 2004/04/12 06:57:24 UTC
xinetd.conf file for svnserve
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@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
Re: xinetd.conf file for svnserve
Posted by Erik Huelsmann <e....@gmx.net>.
> > This is what I have in /etc/xinetd.conf/svn
>
> > socket_type = stream
> > wait = yes
> > user = svn
> > server = /usr/bin/svnserve
> > server_args = -d
This line should read:
server_args = -i
-d will deamonize (create a long-running) svnserve. -i tells it to operate
in (x)inetd mode.
> > log_on_failure += USERID
> > instances = UNLIMITED
>
HTH,
Erik.
--
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/info
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: xinetd.conf file for svnserve
Posted by Greg Matheson <la...@ms.chinmin.edu.tw>.
On Mon, 12 Apr 2004, I wrote:
> I am having trouble launching svnserve from xinetd.
>
> This is what I have in /etc/xinetd.conf/svn
> socket_type = stream
> wait = yes
> user = svn
> server = /usr/bin/svnserve
> server_args = -d
> log_on_failure += USERID
> instances = UNLIMITED
I think I got it working. It may have been I needed this line:
# cps = 100 10
Or it may have been not knowing how to use /sbin/chkconfig :->
--
greg matheson, taiwan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org