I have Mandriva 2007, the subversion-server RPM package provides the
/etc/xinet.d/svnserve script. By default the disable is set to 'yes'. I
edited the file to set the disable to 'no' and to set the server_args to "-i
-r /usr/local/repositories".
My /etc/xinet.d/svnserve file is as follows:
# default: off
# description: svnserve is the server part of Subversion.
service svnserve
{
disable = no
port = 3690
socket_type = stream
protocol = tcp
wait = no
user = svn
server = /usr/bin/svnserve
server_args = -i -r /usr/local/repositories
}
> That said, do you want svnserve running constantly ("service" or
daemonized), or do you > want it called from (x)inetd on an as-needed basis?
If you want it called from inetd
> or some similar replacement, you'll have to configure that with the
appropriate call; > for xinetd something like this should work:
I want it to start at boot and run constantly, just like apache, samba, and
other services. I do not want to have to open a command prompt and invoke
it as a daemon every time I boot up (or reboot) the system.
> You could remove the type and port lines, and add this line to
> /etc/services:
> svn 3690/tcp # Subversion
The following line already exists in my /etc/services file, put their by the
subversion-server RPM package:
svn 3690/tcp svnserve # Subversion
Let me know if you need any more information. Please help me if you can.
Wes
-----Original Message-----
From: Kris Deugau [mailto:kdeugau@vianet.ca]
Sent: Monday, June 18, 2007 1:04 PM
To: users@subversion.tigris.org
Subject: Re: svnserve issue
Wesley Hobbie wrote:
> Hi, I am trying to run this as a service on Linux (xinet service), not
> as a Windows service on Windows.
> Wesley Hobbie wrote:
>> I am unable to start svnserve as a service. If I invoke (as root)
>> 'svnserve -d -r /path/to/repository' it works fine, but when I invoke
>> 'service svnserve start' it reports [Failed]. Can anyone please help me?
I don't know of any Linux distro packages for Subversion that provide the
init script (eg, /etc/init.d/svnserve) that "service <x> (start|stop|...)"
requires. Nor does a source install, IIRC.
That said, do you want svnserve running constantly ("service" or
daemonized), or do you want it called from (x)inetd on an as-needed basis?
If you want it called from inetd or some similar replacement, you'll have to
configure that with the appropriate call; for xinetd something like this
should work:
Save the following to /etc/xinetd.d/svn:
service svn
{
socket_type = stream
wait = no
type = UNLISTED
port = 3690
user = svnuser
server = /usr/bin/svnserve
server_args = -i -r /path/to/repositories
log_on_failure += USERID
}
You could remove the type and port lines, and add this line to
/etc/services:
svn 3690/tcp # Subversion
Restart xinetd, and then when a connection comes in to the system, xinetd
starts up svnserve with the right user and arguments. Note that I switched
-d for -i so that svnserve knows it's being called from an inetd of some
flavour instead of trying to bind to port 3690 and sticking around to handle
incoming requests directly.
-kgd
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 19 01:53:50 2007