configure script (EJAB-676)
* src/ejabberdctl.template: Likewise
SVN Revision: 1459
+2008-07-17 Badlop <badlop@process-one.net>
+
+ * src/Makefile.in: ejabberctl doesn't use the erl found by the
+ configure script (EJAB-676)
+ * src/ejabberdctl.template: Likewise
+
2008-07-17 Christophe Romain <christophe.romain@process-one.net>
* src/web/Makefile.in: use -DSSL39 if compiling with R12
install -m 644 msgs/*.msg $(MSGSDIR)
install -d -m 750 $(ETCDIR)
[ -f $(ETCDIR)/ejabberd.cfg ] && install -b -m 644 ejabberd.cfg.example $(ETCDIR)/ejabberd.cfg-new || install -b -m 644 ejabberd.cfg.example $(ETCDIR)/ejabberd.cfg
- sed -e "s*@rootdir@*@prefix@*" ejabberdctl.template > ejabberdctl.example
+ sed -e "s*@rootdir@*@prefix@*" -e "s*@erl@*@ERL@*" ejabberdctl.template > ejabberdctl.example
[ -f $(ETCDIR)/ejabberdctl.cfg ] && install -b -m 644 ejabberdctl.cfg.example $(ETCDIR)/ejabberdctl.cfg-new || install -b -m 644 ejabberdctl.cfg.example $(ETCDIR)/ejabberdctl.cfg
install -b -m 644 inetrc $(ETCDIR)/inetrc
install -d $(SBINDIR)
NODE=ejabberd
HOST=localhost
ERLANG_NODE=$NODE@$HOST
+ERL=@erl@
ROOTDIR=@rootdir@
EJABBERD_CONFIG_PATH=$ROOTDIR/etc/ejabberd/ejabberd.cfg
LOGS_DIR=$ROOTDIR/var/log/ejabberd/
# start server
start ()
{
- erl \
+ $ERL \
$NAME $ERLANG_NODE \
-noinput -detached \
-pa $EJABBERD_EBIN \
echo "Press any key to continue"
read foo
echo ""
- erl \
+ $ERL \
$NAME ${NODE}debug \
-remsh $ERLANG_NODE \
$ERLANG_OPTS $ARGS "$@"
echo "Press any key to continue"
read foo
echo ""
- erl \
+ $ERL \
$NAME $ERLANG_NODE \
-pa $EJABBERD_EBIN \
-mnesia dir "\"$EJABBERD_DB\"" \
# common control function
ctl ()
{
- erl \
+ $ERL \
$NAME ejabberdctl \
-noinput \
-pa $EJABBERD_EBIN \