61 lines
1.5 KiB
Plaintext
61 lines
1.5 KiB
Plaintext
|
#!/bin/sh
|
||
|
########################################################################
|
||
|
# Begin /etc/init.d/svn
|
||
|
#
|
||
|
# Description : Start Subversion server
|
||
|
#
|
||
|
# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
|
||
|
#
|
||
|
# Version : LFS 7.0
|
||
|
#
|
||
|
########################################################################
|
||
|
|
||
|
### BEGIN INIT INFO
|
||
|
# Provides: svn
|
||
|
# Required-Start: $network
|
||
|
# Should-Start: $remote_fs
|
||
|
# Required-Stop: $network
|
||
|
# Should-Stop: $remote_fs
|
||
|
# Default-Start: 3 4 5
|
||
|
# Default-Stop: 0 1 2 6
|
||
|
# Short-Description: Starts subersion server.
|
||
|
# Description: Starts subversion version control system server daemon.
|
||
|
# X-LFS-Provided-By: BLFS / LFS 7.0
|
||
|
### END INIT INFO
|
||
|
|
||
|
. /lib/lsb/init-functions
|
||
|
|
||
|
#$LastChangedBy: bdubbs $
|
||
|
#$Date: 2011-12-05 20:37:16 -0600 (Mon, 05 Dec 2011) $
|
||
|
|
||
|
case "$1" in
|
||
|
start)
|
||
|
log_info_msg "Starting Subversion..."
|
||
|
start_daemon /usr/bin/svnserve -d -r /srv/svn/repositories
|
||
|
evaluate_retval
|
||
|
;;
|
||
|
|
||
|
stop)
|
||
|
log_info_msg "Stopping Subversion..."
|
||
|
killproc /usr/bin/svnserve.orig
|
||
|
evaluate_retval
|
||
|
;;
|
||
|
|
||
|
restart)
|
||
|
$0 stop
|
||
|
sleep 1
|
||
|
$0 start
|
||
|
;;
|
||
|
|
||
|
status)
|
||
|
statusproc /usr/bin/svnserve.orig
|
||
|
;;
|
||
|
|
||
|
*)
|
||
|
echo "Usage: $0 {start|stop|restart|status}"
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
# End /etc/init.d/svn
|