~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to tools/server-side/svnpubsub/rc.d/svnwcsub.debian

  • Committer: Package Import Robot
  • Author(s): James McCoy, Peter Samuelson, James McCoy
  • Date: 2014-01-12 19:48:33 UTC
  • mfrom: (0.2.10)
  • Revision ID: package-import@ubuntu.com-20140112194833-w3axfwksn296jn5x
Tags: 1.8.5-1
[ Peter Samuelson ]
* New upstream release.  (Closes: #725787) Rediff patches:
  - Remove apr-abi1 (applied upstream), rename apr-abi2 to apr-abi
  - Remove loosen-sqlite-version-check (shouldn't be needed)
  - Remove java-osgi-metadata (applied upstream)
  - svnmucc prompts for a changelog if none is provided. (Closes: #507430)
  - Remove fix-bdb-version-detection, upstream uses "apu-config --dbm-libs"
  - Remove ruby-test-wc (applied upstream)
  - Fix “svn diff -r N file” when file has svn:mime-type set.
    (Closes: #734163)
  - Support specifying an encoding for mod_dav_svn's environment in which
    hooks are run.  (Closes: #601544)
  - Fix ordering of “svnadmin dump” paths with certain APR versions.
    (Closes: #687291)
  - Provide a better error message when authentication fails with an
    svn+ssh:// URL.  (Closes: #273874)
  - Updated Polish translations.  (Closes: #690815)

[ James McCoy ]
* Remove all traces of libneon, replaced by libserf.
* patches/sqlite_3.8.x_workaround: Upstream fix for wc-queries-test test
  failurse.
* Run configure with --with-apache-libexecdir, which allows removing part of
  patches/rpath.
* Re-enable auth-test as upstream has fixed the problem of picking up
  libraries from the environment rather than the build tree.
  (Closes: #654172)
* Point LD_LIBRARY_PATH at the built auth libraries when running the svn
  command during the build.  (Closes: #678224)
* Add a NEWS entry describing how to configure mod_dav_svn to understand
  UTF-8.  (Closes: #566148)
* Remove ancient transitional package, libsvn-ruby.
* Enable compatibility with Sqlite3 versions back to Wheezy.
* Enable hardening flags.  (Closes: #734918)
* patches/build-fixes: Enable verbose build logs.
* Build against the default ruby version.  (Closes: #722393)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
### BEGIN INIT INFO
 
3
# Provides:          svnwcsub
 
4
# Required-Start:    $remote_fs
 
5
# Required-Stop:     $remote_fs
 
6
# Default-Start:     2 3 4 5
 
7
# Default-Stop:      0 1 6
 
8
# Short-Description: SvnWcSub
 
9
# Description:       start SvnWcSub daemon
 
10
#### END INIT INFO
 
11
 
 
12
. /lib/init/vars.sh
 
13
. /lib/lsb/init-functions
 
14
 
 
15
svnwcsub_user=${svnwcsub_user-"svnwc"}
 
16
svnwcsub_group=${svnwcsub_group-"svnwc"}
 
17
svnwcsub_pidfile=${svnwcsub_pidfile-"/var/run/svnwcsub.pid"}
 
18
svnwcsub_config=${svnwcsub_config-"/etc/svnwcsub.conf"}
 
19
svnwcsub_logfile=${svnwcsub_logfile-"/var/log/svnwcsub/svnwcsub.log"}
 
20
pidfile="${svnwcsub_pidfile}"
 
21
 
 
22
SVNWCSUB_CMD="/opt/svnpubsub/svnwcsub.py \
 
23
              --daemon \
 
24
              --logfile=${svnwcsub_logfile} \
 
25
              --pidfile=${pidfile} \
 
26
              --uid=${svnwcsub_user} --gid=${svnwcsub_group} \
 
27
              --umask=002 \
 
28
              ${svnwcsub_config} "
 
29
 
 
30
RETVAL=0
 
31
 
 
32
start() {
 
33
    echo "Starting SvnWcSub Server: "
 
34
    $SVNWCSUB_CMD
 
35
    RETVAL=$?
 
36
    [ $RETVAL -eq 0 ] && echo "ok" || echo "failed"
 
37
    return $RETVAL
 
38
}
 
39
 
 
40
stop() {
 
41
    echo "Stopping SvnWcSub Server: "
 
42
    THE_PID=`cat ${pidfile}`
 
43
    kill $THE_PID
 
44
    RETVAL=$?
 
45
    [ $RETVAL -eq 0 ] && echo "ok" || echo "failed"
 
46
    return $RETVAL
 
47
}
 
48
 
 
49
case "$1" in
 
50
    start)
 
51
        start
 
52
        ;;
 
53
    stop)
 
54
        stop
 
55
        ;;
 
56
    restart)
 
57
        stop
 
58
        start
 
59
        ;;
 
60
    *)
 
61
        echo "Usage: $0 {start|stop|restart}"
 
62
        exit 1
 
63
esac
 
64
 
 
65
exit $RETVAL