Research/Linux
svnserve 를 xinetd에 등록하기
sunnyan
2009. 7. 10. 11:14
728x90
svnserve는 명령라인으로 -d 옵션을 줘서 데몬으로 실행시킬 수도 있다.
하지만 이렇게 하면 svnserve가 항상 상주해야 하기 때문에, xinetd를 사용하면 svn 접속이 있을때만
실행하도록 할 수 있다.
[페도라 9]
xinetd를 설정하려면 당연히 xinetd가 시스템이 설치되어 있어야 한다.
xinetd를 설치하면 /etc/xinetd.conf 가 생기고 /etc/xinetd.d 디렉토리가 생긴다.
xinetd.conf는 건드리지 않아도 된다.
/etc/xinetd.d 디렉토리에 svn 이라는 파일을 아래와 같이 생성하고....
# default: off
# description: The SVN service can record the history of your source
# files. SVN stores all the versions of a file in a single
# file in a clever way that only stores the differences
# between versions.
service svn
{
disable = no
port = 3690
socket_type = stream
protocol = tcp
wait = no
user = [사용자]
server = /usr/bin/svnserve
server_args = -i -r [repository 경로]
}
/etc/services 파일에 아래 항목이 존재하는 확인해야 한다. 보통은 디폴트로 존재...
svn 3690/tcp
svn 3690/udp
그런 후에, /etc/init.d/xinetd restart를 실행해주면 된다.
하지만 이렇게 하면 svnserve가 항상 상주해야 하기 때문에, xinetd를 사용하면 svn 접속이 있을때만
실행하도록 할 수 있다.
[페도라 9]
xinetd를 설정하려면 당연히 xinetd가 시스템이 설치되어 있어야 한다.
xinetd를 설치하면 /etc/xinetd.conf 가 생기고 /etc/xinetd.d 디렉토리가 생긴다.
xinetd.conf는 건드리지 않아도 된다.
/etc/xinetd.d 디렉토리에 svn 이라는 파일을 아래와 같이 생성하고....
# default: off
# description: The SVN service can record the history of your source
# files. SVN stores all the versions of a file in a single
# file in a clever way that only stores the differences
# between versions.
service svn
{
disable = no
port = 3690
socket_type = stream
protocol = tcp
wait = no
user = [사용자]
server = /usr/bin/svnserve
server_args = -i -r [repository 경로]
}
/etc/services 파일에 아래 항목이 존재하는 확인해야 한다. 보통은 디폴트로 존재...
svn 3690/tcp
svn 3690/udp
그런 후에, /etc/init.d/xinetd restart를 실행해주면 된다.
728x90