]> git.pld-linux.org Git - packages/subversion.git/commitdiff
- new
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 19 Nov 2003 20:14:16 +0000 (20:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    subversion-svnserve.init -> 1.1
    subversion-svnserve.sysconfig -> 1.1

subversion-svnserve.init [new file with mode: 0644]
subversion-svnserve.sysconfig [new file with mode: 0644]

diff --git a/subversion-svnserve.init b/subversion-svnserve.init
new file mode 100644 (file)
index 0000000..c0cdaf1
--- /dev/null
@@ -0,0 +1,73 @@
+#!/bin/sh
+#
+# svnserve             This shell script takes care of starting and stopping svnserve.
+#
+# chkconfig:   2345 80 30
+# description: svnserve is a subversion server
+#              
+# processname: svnserve
+# config:      
+# pidfile:
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+# Source networking configuration.
+. /etc/sysconfig/network
+
+# Source svnserve configureation.
+[ -f /etc/sysconfig/svnserve ] && . /etc/sysconfig/svnserve
+
+# Check that networking is up.
+if is_yes "${NETWORKING}"; then
+       if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
+               msg_network_down svnserve
+               exit 1
+       fi
+else
+       exit 0
+fi
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+  start)
+       # Start daemons.
+       if [ ! -f /var/lock/subsys/svnserve ]; then
+               msg_starting svnserve
+               daemon svnserve ${SVNSERVE_OPTIONS}
+               RETVAL=$?
+               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/svnserve
+       else
+               msg_already_running svnserve
+       fi
+       ;;
+  stop)
+       # Stop daemons.
+       if [ -f /var/lock/subsys/svnserve ]; then
+               msg_stopping svnserve
+               killproc svnserve
+               rm -f /var/lock/subsys/svnserve >/dev/null 2>&1
+       else
+               msg_not_running svnserve
+       fi      
+       ;;
+  restart|force-reload)
+       $0 stop
+       $0 start
+       exit $?
+       ;;
+  status)
+       status svnserve
+       exit $?
+       ;;
+#  reload)
+#      msg_reloading svnserve
+#      killproc svnserve -HUP
+#      ;;
+  *)
+       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       exit 3
+esac
+
+exit $RETVAL
diff --git a/subversion-svnserve.sysconfig b/subversion-svnserve.sysconfig
new file mode 100644 (file)
index 0000000..917ac61
--- /dev/null
@@ -0,0 +1,9 @@
+## Type:       string
+## Default     "-d -R -r /srv/svn/repos"
+#
+# default options for the svnserve process
+# it is recommended to provide only readonly access to your data.
+# there is no authentication possible, everyone can read and write at will
+# read the subversion documentation about more info
+#
+SVNSERVE_OPTIONS="-d -R -r /srv/svn/repos"
This page took 0.383495 seconds and 4 git commands to generate.