在 Ubuntu裡, Subversion 是client,也是Server , 不過,它並沒有建立自動啟動 Server 的script,所以我們可以手動來做這件事。
情境:
檔案庫 /home/svnrepos
步驟:
- $ cd /etc/init.d
- $ sudo touch svnserve
- $ sudo vi svnserve
### BEGIN INIT INFO
# Provides: svnserve
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFOsvnserve -d -r
- $ sudo chmod +x svnserve
- $ sudo
update-rc.d svnserve defaults
Adding system startup for /etc/init.d/svnserve ...
/etc/rc0.d/K20svnserve -> ../init.d/svnserve
/etc/rc1.d/K20svnserve -> ../init.d/svnserve
/etc/rc6.d/K20svnserve -> ../init.d/svnserve
/etc/rc2.d/S20svnserve -> ../init.d/svnserve
/etc/rc3.d/S20svnserve -> ../init.d/svnserve
/etc/rc4.d/S20svnserve -> ../init.d/svnserve
/etc/rc5.d/S20svnserve -> ../init.d/svnserve
0 意見:
張貼留言