[ejabberd] ejabberdctl problems and bulkloading

Sergei Golovan sgolovan at nm.ru
Mon Dec 6 22:22:02 MSK 2004


On Mon, Dec 06, 2004 at 11:34:42AM -0600, Johnny Matthews wrote:
> Sergei Golovan wrote:
> I installed this with the Debian apt-get.  I moved the cookie from /root 
> to /etc/ejabberd and gave read permission to the ejabberd user. I then 
> changed /etc/init.d/ejabberd  I added
> 
> COOKIE="/etc/ejabberd/.erlang.cookie"
> 
> and changed
> 
> start()
> {
>    su $EJABBERDUSER -c "$EJABBERD -noshell -detached"
> }
> to
> start()
> {
>    su $EJABBERDUSER -c "$EJABBERD -noshell -detached -setcookie $COOKIE"
> }
> 
> After a reboot, this is the entry from ps axu
> 
> ejabberd   294  1.2  6.4 13640 8168 ?        S    11:28   0:01 
> /usr/lib/erlang/erts-5.3.6.3/bin/beam -- -root /usr/lib/erlang -progname 
> erl -- -home /var/lib/ejabberd -sname ejabberd -s ejabberd -ejabberd 
> config "/etc/ejabberd/ejabberd.cfg" log_path 
> "/var/log/ejabberd/ejabberd.log" -sasl sasl_error_logger 
> {file,"/var/log/ejabberd/sasl.log"} -mnesia dir "/var/lib/ejabberd" 
> -noshell -noshell -noinput -setcookie /etc/ejabberd/.erlang.cookie

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.

-- 
Sergei 'TeopeTuK' Golovan


More information about the ejabberd mailing list