x86_64 compatibility

tags/0.2.14_el5
Daniel Berteaud 11 years ago
parent 35963acc93
commit 6a95b96828
  1. 15
      root/var/service/ejabberd/run

@ -27,19 +27,32 @@ SASL_LOG_PATH=/var/log/ejabberd/sasl.log
export SASL_LOG_PATH export SASL_LOG_PATH
EJABBERD_LOG_PATH=/var/log/ejabberd/ejabberd.log EJABBERD_LOG_PATH=/var/log/ejabberd/ejabberd.log
export EJABBERD_LOG_PATH export EJABBERD_LOG_PATH
if [ -d /usr/lib64/ejabberd/priv/lib ]; then
EJABBERD_SO_PATH=/usr/lib64/ejabberd/priv/lib
else
EJABBERD_SO_PATH=/usr/lib/ejabberd/priv/lib EJABBERD_SO_PATH=/usr/lib/ejabberd/priv/lib
fi
export EJABBERD_SO_PATH export EJABBERD_SO_PATH
EJABBERD_CONFIG_PATH=/etc/ejabberd/ejabberd.cfg EJABBERD_CONFIG_PATH=/etc/ejabberd/ejabberd.cfg
export EJABBERD_CONFIG_PATH export EJABBERD_CONFIG_PATH
if [ -d /usr/lib64/ejabberd/priv/msgs ]; then
EJABBERD_MSGS_PATH=/usr/lib64/ejabberd/priv/msgs
else
EJABBERD_MSGS_PATH=/usr/lib/ejabberd/priv/msgs EJABBERD_MSGS_PATH=/usr/lib/ejabberd/priv/msgs
fi
export EJABBERD_MSGS_PATH export EJABBERD_MSGS_PATH
EJABBERD_DB=/var/lib/ejabberd/spool EJABBERD_DB=/var/lib/ejabberd/spool
export EJABBERD_DB export EJABBERD_DB
HOME=/var/lib/ejabberd HOME=/var/lib/ejabberd
export HOME export HOME
if [ -d /usr/lib64/ejabberd/ebin ]; then
EBIN=/usr/lib64/ejabberd/ebin
else
EBIN=/usr/lib/ejabberd/ebin
fi
exec /usr/local/bin/setuidgid ejabberd \ exec /usr/local/bin/setuidgid ejabberd \
erl -pa /usr/lib/ejabberd/ebin \ erl -pa $EBIN \
-noinput \ -noinput \
-smp auto +K false +P 250000 \ -smp auto +K false +P 250000 \
-sname ejabberd \ -sname ejabberd \

Loading…
Cancel
Save