source: packages/net/subversion/files/subversion.init @ 17211

Last change on this file since 17211 was 17211, checked in by acinonyx, 7 years ago

[packages] subversion: Update to v1.6.4 (closes #5658)

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 876 bytes
Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2006 OpenWrt.org
3START=50
4
5start_service () {
6        local section="$1"
7        config_get path "$section" path
8        config_get port "$section" port
9
10        if [ ! -d "$path" ]; then
11                echo "The subversion repository (${path}) does not exist."
12                echo "Create a new repository and/or change the path in /etc/config/subversion"
13                echo
14                echo "Create a new subversion repository with:"
15                echo "        mkdir -p /srv"
16                echo "        svnadmin create --fs-type fsfs /srv/svn"
17                echo
18                echo "Changing the path using UCI (default path is: /var/local/svn):"
19                echo "        uci set subversion.cfg1.path="/srv/svn""
20                echo "        uci commit"
21                echo "        /etc/init.d/subversion restart"
22                exit 1
23        fi
24
25        svnserve -d --listen-port ${port} -r ${path}
26}
27
28start() {
29        config_load "subversion"
30        config_foreach start_service subversion
31}
32
33stop() {
34        killall -9 svnserve
35}
Note: See TracBrowser for help on using the repository browser.