标签:defaults stop repos provides bsp cas ini require kill
/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
标签:defaults stop repos provides bsp cas ini require kill
原文地址:http://www.cnblogs.com/hyteddy/p/6019088.html