树莓派(jessie)制作服务并开机启动
/etc/init.d/xware
#!/bin/sh
### BEGIN INIT INFO
# Provides: svn_serve
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start or stop the HTTP Proxy.
### END INIT INFO
case $1 in
start)
svnserve -d -r /home/pi/svn_repository
;;
stop)
killall svnserve
;;
*)
echo "Usage: $0 (start|stop)"
;;
esac
注释部门填写正确信息
chmod a+x xware
.
sudo update-rc.d svn_serve defaultsd svn_serve def