Thursday, December 08, 2005
svn server with daemontools on Debian
Howto run subversion's svnserve with daemontools on Debian:
- Install daemontools
- Adduser
svn
- Create repository (
svnadmin create /home/svn
) - Configure svn server$ cat <<EOF > /home/svn/svnserve.conf
[general]
realm = mbfx's svn
password-db = passwd
anon-access = none
auth-access = write
EOF
$ cat <<EOF> /home/svn/passwd
testuser = secretpasswordplease
testman = notsoosecret
EOF - Start
svnserve
usingsupervise
$ mkdir /service/svn
$ cat <<EOF > /service/svn/run
#!/bin/sh
exec /usr/local/bin/setuidgid svn /usr/bin/svnserve -d --foreground -r /home/svn
EOF