hoodwink.d enhanced
 

juretta.com

Enable svnserve using xinetd on Debian | July 09, 2006-->

July 09, 2006

Add svnserver to /etc/services:

svnserve 3690/tcp # Subversion svnserve
svnserve 3690/udp # Subversion svnserve 

Create the xinetd configuration file for svnserve (using svnadmin as the user who runs the svnserve):

stefan@www:~$ cat /etc/xinetd.d/svn
service svn
                {
                        socket_type     = stream
                        protocol        = tcp
                        user            = svnadmin
                        wait            = no
                        disable         = no
                        server          = /usr/bin/svnserve
                        server_args     = -i -r /usr/local/svn/public
                        port            = 3690
                }

server_args: -r /usr/local/svn/public prevents svnserve to serve every subversion repository available on the system

Restart the xinetd service

stefan@www:~$ kill -SIGUSR2 `cat /var/run/xinetd.pid`

Check that svnserve is running

stefan@www:~$ telnet localhost 3690
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
( success ( 1 2 ( ANONYMOUS ) ( edit-pipeline ) ) )

Create a subversion repository

stefan@www:~$ cd /usr/local/svn/public
stefan@www:~$ svnadmin create ruby

Your subversion repository is now available using:

stefan@www:~$ svn list svn://svn.example.com/ruby
dir_a/
dir_b/
...

Diggman

1
Mateusz Szczap says:
Avatar Sat May 05 09:26:54 +0200 2007 | #

Thanks mate, you helped me with your blog entry setting up my svn-repo

2
3pound says:
Avatar Sun Jul 15 08:47:28 +0200 2007 | #
     bind = x.x.x.x 
eg.
     bind = 10.8.0.1

.. to specify IP to listen on. (from xinetd.conf manpage)
(I wanted this for VPN-only access)
Thanks.

About

juretta.com is the personal workspace of Stefan Saasen. You can send him an email or read more about this site in the „About“ section.

« Previous entry

Capistrano: Hide SVN Files
posted over 2 years ago

» Next entry

Rails-Rdoc task fails on Windows
posted over 2 years ago

Recent comment

On: “Attachr.com: OpenID support added

You need to kill this spam stuff!

posted about 1 year ago by entropie

Look!

Latest links  RSS  

More...