树莓派(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

posted @ 2016-11-01 13:18  霍伊特  阅读(529)  评论(0编辑  收藏  举报