[ejabberd] ejabberdctl problems and bulkloading

Johnny Matthews johnny.matthews at gmail.com
Mon Dec 6 22:45:51 MSK 2004


Ok, you are going to be really tired of me....


I changed ejabberdctl to this
---------------------------------------------------------
#!/bin/sh

[ -r /etc/ejabberd/.erlang.cookie ] && HOME=/var/lib/ejabberd

NODE=ejabberd@`hostname -s`

if [ $# -ne 0 ]
then
    case $1 in
        --node) shift ; NODE=$1 ; shift ;;
    esac
fi

exec erl -noinput -sname ejabberdctl -s ejabberd_ctl -extra $NODE "$@"
---------------------------------------------------------

telnet localhost 4369 and then netstat -atnp |grep '\(beam\|epmd\)' on 
another console gives

tcp        0      0 192.168.1.101:5223      192.168.1.19:2835       
ESTABLISHED294/beam
tcp        0      0 0.0.0.0:5280            0.0.0.0:*               
LISTEN     294/beam
tcp        0      0 0.0.0.0:5269            0.0.0.0:*               
LISTEN     294/beam
tcp        0      0 0.0.0.0:5223            0.0.0.0:*               
LISTEN     294/beam
tcp        0      0 0.0.0.0:5222            0.0.0.0:*               
LISTEN     294/beam
tcp        0      0 127.0.0.1:1028          127.0.0.1:4369          
ESTABLISHED294/beam
tcp        0      0 0.0.0.0:1027            0.0.0.0:*               
LISTEN     294/beam


>If you modify ejabberd init script, you also have to modify
>/usr/sbin/ejabberdctl. But both scripts are designed to allow users root and
>ejabberd successfully run and stop server.
>
>When you have started ejabberd, try to connect to localhost port 4369. If it
>fails then it's definitely firewall :)
>
>And give the netstat -atnp |grep '\(beam\|epmd\)' output.
>
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jabber.ru/pipermail/ejabberd/attachments/20041206/895454ad/attachment.html


More information about the ejabberd mailing list