mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-02 16:37:52 +01:00
* src/ejabberdctl.template: Instead of using the Erlang kernel
variable 'inetrc', use the ERL_INETRC environment variable that is available since Erlang/OTP R10B-5. SVN Revision: 1149
This commit is contained in:
parent
73bca8fbc0
commit
228eb9d333
@ -1,3 +1,9 @@
|
|||||||
|
2008-01-13 Badlop <badlop@process-one.net>
|
||||||
|
|
||||||
|
* src/ejabberdctl.template: Instead of using the Erlang kernel
|
||||||
|
variable 'inetrc', use the ERL_INETRC environment variable that is
|
||||||
|
available since Erlang/OTP R10B-5.
|
||||||
|
|
||||||
2008-01-12 Christophe Romain <christophe.romain@process-one.net>
|
2008-01-12 Christophe Romain <christophe.romain@process-one.net>
|
||||||
|
|
||||||
* src/mod_pubsub/mod_pubsub.erl: set_subscription fix (EJAB-494)
|
* src/mod_pubsub/mod_pubsub.erl: set_subscription fix (EJAB-494)
|
||||||
|
@ -42,7 +42,6 @@ NAME=-name
|
|||||||
ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES"
|
ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES"
|
||||||
|
|
||||||
# define additional environment variables
|
# define additional environment variables
|
||||||
ERL_INETRC_PATH=$ROOTDIR/etc/ejabberd/inetrc
|
|
||||||
EJABBERD_EBIN=$ROOTDIR/var/lib/ejabberd/ebin
|
EJABBERD_EBIN=$ROOTDIR/var/lib/ejabberd/ebin
|
||||||
EJABBERD_MSGS_PATH=$ROOTDIR/var/lib/ejabberd/priv/msgs
|
EJABBERD_MSGS_PATH=$ROOTDIR/var/lib/ejabberd/priv/msgs
|
||||||
EJABBERD_SO_PATH=$ROOTDIR/var/lib/ejabberd/priv/lib
|
EJABBERD_SO_PATH=$ROOTDIR/var/lib/ejabberd/priv/lib
|
||||||
@ -50,16 +49,18 @@ EJABBERD_LOG_PATH=$LOGS_DIR/ejabberd.log
|
|||||||
SASL_LOG_PATH=$LOGS_DIR/sasl.log
|
SASL_LOG_PATH=$LOGS_DIR/sasl.log
|
||||||
DATETIME=`date "+%Y%m%d-%H%M%S"`
|
DATETIME=`date "+%Y%m%d-%H%M%S"`
|
||||||
ERL_CRASH_DUMP=$LOGS_DIR/erl_crash_$DATETIME.dump
|
ERL_CRASH_DUMP=$LOGS_DIR/erl_crash_$DATETIME.dump
|
||||||
|
ERL_INETRC=$ROOTDIR/etc/ejabberd/inetrc
|
||||||
HOME=$ROOTDIR/var/lib/ejabberd
|
HOME=$ROOTDIR/var/lib/ejabberd
|
||||||
|
|
||||||
# export global variables
|
# export global variables
|
||||||
export EJABBERD_CONFIG_PATH
|
export EJABBERD_CONFIG_PATH
|
||||||
export EJABBERD_MSGS_PATH
|
export EJABBERD_MSGS_PATH
|
||||||
|
export EJABBERD_LOG_PATH
|
||||||
export EJABBERD_SO_PATH
|
export EJABBERD_SO_PATH
|
||||||
|
export ERL_CRASH_DUMP
|
||||||
|
export ERL_INETRC
|
||||||
export ERL_MAX_PORTS
|
export ERL_MAX_PORTS
|
||||||
export ERL_MAX_ETS_TABLES
|
export ERL_MAX_ETS_TABLES
|
||||||
export ERL_CRASH_DUMP
|
|
||||||
export EJABBERD_LOG_PATH
|
|
||||||
export HOME
|
export HOME
|
||||||
|
|
||||||
[ -d $EJABBERD_DB ] || mkdir -p $EJABBERD_DB
|
[ -d $EJABBERD_DB ] || mkdir -p $EJABBERD_DB
|
||||||
@ -76,7 +77,6 @@ start ()
|
|||||||
-noinput -detached \
|
-noinput -detached \
|
||||||
-pa $EJABBERD_EBIN \
|
-pa $EJABBERD_EBIN \
|
||||||
-mnesia dir "\"$EJABBERD_DB\"" \
|
-mnesia dir "\"$EJABBERD_DB\"" \
|
||||||
-kernel inetrc "\"$ERL_INETRC_PATH\"" \
|
|
||||||
-s ejabberd \
|
-s ejabberd \
|
||||||
-sasl sasl_error_logger \{file,\"$SASL_LOG_PATH\"\} \
|
-sasl sasl_error_logger \{file,\"$SASL_LOG_PATH\"\} \
|
||||||
$ERLANG_OPTS $ARGS "$@"
|
$ERLANG_OPTS $ARGS "$@"
|
||||||
@ -103,7 +103,6 @@ debug ()
|
|||||||
echo ""
|
echo ""
|
||||||
erl \
|
erl \
|
||||||
$NAME ${NODE}debug \
|
$NAME ${NODE}debug \
|
||||||
-kernel inetrc \"$ERL_INETRC_PATH\" \
|
|
||||||
-remsh $ERLANG_NODE \
|
-remsh $ERLANG_NODE \
|
||||||
$ERLANG_OPTS $ARGS "$@"
|
$ERLANG_OPTS $ARGS "$@"
|
||||||
}
|
}
|
||||||
@ -131,7 +130,6 @@ live ()
|
|||||||
$ERLANG_OPTS \
|
$ERLANG_OPTS \
|
||||||
-pa $EJABBERD_EBIN \
|
-pa $EJABBERD_EBIN \
|
||||||
-mnesia dir "\"$EJABBERD_DB\"" \
|
-mnesia dir "\"$EJABBERD_DB\"" \
|
||||||
-kernel inetrc "\"$ERL_INETRC_PATH\"" \
|
|
||||||
-s ejabberd \
|
-s ejabberd \
|
||||||
$ERLANG_OPTS $ARGS "$@"
|
$ERLANG_OPTS $ARGS "$@"
|
||||||
}
|
}
|
||||||
@ -143,7 +141,6 @@ ctl ()
|
|||||||
$NAME ejabberdctl \
|
$NAME ejabberdctl \
|
||||||
-noinput \
|
-noinput \
|
||||||
-pa $EJABBERD_EBIN \
|
-pa $EJABBERD_EBIN \
|
||||||
-kernel inetrc \"$ERL_INETRC_PATH\" \
|
|
||||||
-s ejabberd_ctl -extra $ERLANG_NODE $@
|
-s ejabberd_ctl -extra $ERLANG_NODE $@
|
||||||
result=$?
|
result=$?
|
||||||
case $result in
|
case $result in
|
||||||
|
Loading…
Reference in New Issue
Block a user