오늘 Svn 이 자동 실행되지 않아서 귀찮은 일이 발생했다. (뭔가 건드려야 하는 일이 생기면 귀찮아지기 마련이다.) 그래서 다음과 같이 chkconfig에 추가했다.

 

# chkconfig svnserve on

 

svnserve는 실행 시 저장소(repository) 경로 설정을 해야 하므로 한가지 더 수정해야 한다.

 

# vi /etc/init.d/svnserve

 

윗부분 아무곳이나 아래

reporoot=/data/svn/

exec=/usr/bin/svnserve

prog=svnserve

pidfile=${PIDFILE-/var/run/svnserve.pid}

lockfile=${LOCKFILE-/var/lock/subsys/svnserve}

args="--daemon --pid-file=${pidfile} $OPTIONS"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

 

(중략)

 

daemon --pidfile=${pidfile} $exec -r $reporoot $args


그리고 서비스를 시작하자.


# service svnserve start


svn 서버를 시작하기 위해서는 다음과 같이 입력해야 한다.


# svnserve -d -r 저장소경로



+ Recent posts