Ubuntu开机启动svn
一、创建脚本
$cd /etc/init.d/
$sudo vim svnserve
内容如下
#! /bin/sh
sudo svnserve -d -r /home/svn
二、脚本权限设置
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
四、OK,重启机器即可!