~ubuntu-branches/ubuntu/trusty/ejabberd/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/scripts/ejabberd

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs, Konstantin Khomoutov, Gerfried Fuchs
  • Date: 2009-12-04 18:22:49 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20091204182249-6jfmdz8878h7oaos
Tags: 2.1.0-1
[ Konstantin Khomoutov ]
* New upstream release (Closes: #519858).
  This also adds support for LDAPS upstream (Closes: #526145).
* Do not depend on cdbs anymore, port debian/rules to dh+quilt,
  remove build dependency on patchutils, use erlang-depends.
* Bump debhelper version to 7, standards base to 3.8.3
* Depend on erlang R13B.
* Recommend imagemagick (for captcha support).
* Remove deprecated patches (ssl.patch patch, dynamic_compile_loglevel.patch,
  ldaps.patch, update.patch, proxy.patch, caps.patch, convert.patch,
  s2s.patch).
* Replace mod_ctlextra with mod_admin_extra.
* Use upstream inetrc file.
* Bring debian/ejabberd.cfg and ejabberdctl in sync with upstream.
* Update ejabberdctl manual page.
* Provide NEWS file.
* Rework README.Debian:
  * Group all information into sections.
  * Describe issues with epam binary (Closes: #502791).
  * Discuss how to use DBMS backends (Closes: #540915, #507144).
  * Discuss upgrading from 2.0.x series.
* Implement PID file management (Closes: #519858).
* Make logrotate process all files matching "*.log".
* Improve init script:
  * Make init script LSB-compliant.
  * Implement "live" target which allows to run ejabberd in foreground.
* Make captcha.sh use bash explicitly.
* Rework node-generation for ejabberdctl to fix ejabberd's atom table
  overflows while preserving the possibility to run several versions
  of ejabberdctl concurrently as before.
* Add webadmin patch restoring compatibility with Erlang/OTP <= R12B-4.
* Integrate upstream patch for EJAB-1106.
* Add upstream patch for EJAB-1098.
* Add upstream patch for EJAB-1045.
* Add Konstantin Khomoutov to uploaders.
* Add Japanese debconf translation (thanks to Hideki Yamane)
  (Closes: #558071).

[ Gerfried Fuchs ]
* Build-Depend on po-debconf so po2debconf can be called.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
    . /etc/default/ejabberd
13
13
fi
14
14
 
15
 
ERLANG_OPTS="+K $POLL -smp $SMP +P $PROCESSES"
 
15
if [ "$FIREWALL_WINDOW" = "" ] ; then
 
16
    KERNEL_OPTS=""
 
17
else
 
18
    KERNEL_OPTS="-kernel \
 
19
        inet_dist_listen_min ${FIREWALL_WINDOW%-*} \
 
20
        inet_dist_listen_max ${FIREWALL_WINDOW#*-}"
 
21
fi
 
22
 
 
23
ERLANG_OPTS="+K $POLL -smp $SMP +P $PROCESSES $KERNEL_OPTS"
16
24
 
17
25
if [ -r /var/lib/ejabberd/.erlang.cookie ] ; then
18
26
    HOME=/var/lib/ejabberd
24
32
CONFIG=/etc/ejabberd/ejabberd.cfg
25
33
INETRC=/etc/ejabberd/inetrc
26
34
LOG=/var/log/ejabberd/ejabberd.log
27
 
SASL_LOG=/var/log/ejabberd/sasl.log
 
35
ERLANG_LOG=/var/log/ejabberd/erlang.log
28
36
SPOOL=/var/lib/ejabberd
29
37
ERL_CRASH_DUMP=/var/log/ejabberd/erl_crash.dump
 
38
EJABBERD_PID_PATH=/var/run/ejabberd/ejabberd.pid
30
39
 
31
40
export ERL_CRASH_DUMP
32
41
export ERL_MAX_PORTS
33
42
export ERL_MAX_ETS_TABLES
34
43
export ERL_FULLSWEEP_AFTER
 
44
export EJABBERD_PID_PATH
35
45
 
36
46
 
37
47
ARGS=
43
53
        --node) ERLANG_NODE=$1; shift ;;
44
54
        --config) CONFIG=$1 ; shift ;;
45
55
        --log) LOG=$1 ; shift ;;
46
 
        --sasl-log) SASL_LOG=$1 ; shift ;;
 
56
        --erlang-log) ERLANG_LOG=$1 ; shift ;;
47
57
        --spool) SPOOL=$1 ; shift ;;
48
58
        *) ARGS="$ARGS $PARAM" ;;
49
59
    esac
60
70
    -s ejabberd \
61
71
    -kernel inetrc \"$INETRC\" \
62
72
    -ejabberd config \"$CONFIG\" log_path \"$LOG\" \
63
 
    -sasl sasl_error_logger \{file,\"$SASL_LOG\"\} \
 
73
    -sasl sasl_error_logger \{file,\"$ERLANG_LOG\"\} \
64
74
    -mnesia dir \"$SPOOL\" \
65
75
    $ERLANG_OPTS $ERL_OPTIONS $ARGS "$@"
66
76