Okay, here is how to setup svnserver on fedora 10:
1. in case you haven't installed it yet, use yum to do so now:
Code:
yum install subversion
2. screw xinetd, it's not going to work. Fedora likes Sys V scripts instead. Create the /etc/init.d/svnserve file and write this script in it:
Code:
#!/bin/bash
case "$1" in
start)
svnserve -d --listen-port=3690
;;
stop)
;;
reload|restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 start|stop|restart|reload"
exit 1
esac
exit 0
3. grand execution permissions to the script above:
4. add the svn listening port to the /etc/services file by adding the following two lines in it:
Code:
svnserve 3690/tcp # Subversion
svnserve 3690/udp # Subversion
5. type in the following commands:
Code:
chkconfig svnserve
service svnserve start
6. check that the service is listening:
Code:
netstat -anp | grep 3690
you can now check on your repos by using svn urls, e.g:
Code:
svn list svn://localhost/path-to-repository
or use the following url if you have setup a non-default port, e.g:
Code:
svn list svn://localhost:PORT/path-to-repository
I am still missing the STOP command in the script. Any nice ideas?
Hope that helps