Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37778481
en ru br
Репозитории ALT
S:1.14.2-alt1
D:1.4.4-alt2.3.2
5.1: 1.6.13-alt0.M50P.1
4.1: 1.4.4-alt2.1.M41.1
4.0: 1.4.4-alt1
+updates:1.4.4-alt1
3.0: 1.2.3-alt2
www.altlinux.org/Changes

Группа :: Разработка/Прочее
Пакет: subversion

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

#! /bin/sh
#
# svnserve A Subversion standalone server
#
# chkconfig: - 70 30
# description: \
# The goal of the Subversion project is to build a revision system that \
# is a compelling replacement for CVS in the open community. The software \
# is released under an Apache/BSD-style source license. See the status \
# page for current progress.
# processname: svnserve
# config: /etc/sysconfig/svnserve

# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1

# Source function library.
. /etc/init.d/functions

SourceIfNotEmpty /etc/sysconfig/svnserve

SVN_USER=${SVN_USER-subversion}

SVNSERVE=/usr/bin/svnserve
SVNSERVE_BIN=/usr/bin/svnserve.bin

[ -z "$SVN_ROOT" ] || SVN_OPTS="$SVN_OPTS -r \"$SVN_ROOT\""

PIDFILE=none
LOCKFILE=/var/lock/subsys/svnserve
RETVAL=0

[ -x "$SVNSERVE" ] || exit 1

start()
{
start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --user "$SVN_USER" --expect-user "$SVN_USER" -- $SVNSERVE -d $SVN_OPTS
RETVAL=$?
return $RETVAL
}

stop()
{
stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user "$SVN_USER" -- $SVNSERVE_BIN
RETVAL=$?
return $RETVAL
}

restart()
{
stop
start
}

reload()
{
msg_reloading subversion
stop_daemon --pidfile "$PIDFILE" --expect-user "$SVN_USER" -HUP -- $SVNSERVE_BIN
RETVAL=$?
return $RETVAL
}

# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
reload)
reload
;;
restart)
restart
;;
condstop)
if [ -e "$LOCKFILE" ]; then
stop
fi
;;
condrestart)
if [ -e "$LOCKFILE" ]; then
restart
fi
;;
condreload)
if [ -e "$LOCKFILE" ]; then
reload
fi
;;
status)
status --pidfile "$PIDFILE" --expect-user "$SVN_USER" -- $SVNSERVE_BIN
RETVAL=$?
;;
*)
msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|condreload|status}"
RETVAL=1
esac

exit $RETVAL
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin