aboutsummaryrefslogtreecommitdiff
path: root/tools/ejabberdctl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2007-09-27 12:32:05 +0000
committerChristophe Romain <christophe.romain@process-one.net>2007-09-27 12:32:05 +0000
commit0bb936f848a0edd61084dbd062363069ffa7a2da (patch)
tree311c4931395e9491955d9f12aa14a151982786d3 /tools/ejabberdctl
parent* src/ejabberd_s2s.erl: Max number of connections and max number (diff)
apply rootdir patch from Badlop (EJAB-385)
SVN Revision: 951
Diffstat (limited to '')
-rwxr-xr-xtools/ejabberdctl7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/ejabberdctl b/tools/ejabberdctl
index f4e134b34..8b16785d8 100755
--- a/tools/ejabberdctl
+++ b/tools/ejabberdctl
@@ -8,6 +8,7 @@ base="`dirname $(which "$0")`/.."
ROOTDIR=`(cd "$base"; echo $PWD)`
SASL_LOG_PATH=$ROOTDIR/sasl.log
EJABBERD_DB=$ROOTDIR/database/$NODE
+EJABBERD_EBIN=$ROOTDIR/src
export EJABBERD_LOG_PATH=$ROOTDIR/ejabberd.log
export EJABBERD_CONFIG_PATH=$ROOTDIR/ejabberd.cfg
export EJABBERD_MSGS_PATH=$ROOTDIR/src/msgs
@@ -22,7 +23,7 @@ function start
erl \
-noinput -detached \
-sname $NODE@$HOST \
- -pa $ROOTDIR/src \
+ -pa $EJABBERD_EBIN \
-mnesia dir "\"$EJABBERD_DB\"" \
-s ejabberd \
-ejabberd config \"$EJABBERD_CONFIG_PATH\" \
@@ -34,7 +35,7 @@ function debug
{
erl \
-sname debug$NODE@$HOST \
- -pa $ROOTDIR/src \
+ -pa $EJABBERD_EBIN \
-mnesia dir "\"$EJABBERD_DB\"" \
-remsh $NODE@$HOST
}
@@ -44,7 +45,7 @@ function ctl
erl \
-noinput \
-sname ejabberdctl@$HOST \
- -pa $ROOTDIR/src \
+ -pa $EJABBERD_EBIN \
-s ejabberd_ctl -extra $NODE@$HOST $@
}