[ejabberd] Starting ejabberd as a daemon (in the background) and icq transport

Christopher R, Parr crparr at gmail.com
Sat Oct 16 00:27:30 MSD 2004


Thanks rot your init script. But I've got a problem when I want to
stop the server.
FYI: the Server where I've installed ejabberd, also runs as a web,
mail ldap and ssh server for alltogether 3 domains. Now I get the
following error when stopping the server:
--------------------------------------------------------------------------------
obelix ~ # /etc/init.d/ejabberd stop
Stopping ejabberd.
Eshell V5.3  (abort with ^G)
(ejabberdstop at obelix)1> {error_logger,{{2004,10,15},{22,9,6}},'**
System NOT running to use fully qualified hostnames **~n** Hostname ~s
is illegal **~n',['crparr.net']}
{badrpc,nodedown}

=ERROR REPORT==== 15-Oct-2004::22:09:06 ===
** System NOT running to use fully qualified hostnames **
** Hostname crparr.net is illegal **
(ejabberdstop at obelix)2> ** Terminating erlang (ejabberdstop at obelix) **
--------------------------------------------------------------------------------
My /etc/hostname reads obelix, my /etc/dnsdomainname reads int.crparr.
To whatz hostname and domainname should I set my PC?

Please help.

Thanks
Christopher Parr


On Fri, 15 Oct 2004 20:55:36 +0200, Sander Devrieze
<s.devrieze at pandora.be> wrote:
> Op vrijdag 15 oktober 2004 20:37, schreef Christopher R, Parr:
> > Hi!
> >
> > I'm new to ejabberd and have got 2 wuerstions:
> >
> > 1. How can I start ejabberd in the background? This is normally done
> > on my system from /etc/init.d. But I'm missing the ejabberd script.
> 
> This is how mine looks like:
> 
> #!/bin/sh
> #########################################################
> #
> #     ejabberd -- script to start ejabberd.
> #     Written by Sander Devrieze <s.devrieze at pandora.be>
> #
> #########################################################
> 
> ERL=/usr/local/bin/erl
> NAME=ejabberd
> 
> #########################################################
> 
> case "$1" in
>   start)
>         echo "Starting $NAME."
>         cd /opt/ejabberd/tmp/ejabberd/src/
>         $ERL -pa /opt/ejabberd/var/lib/ejabberd/ebin \
>              -name ejabberd \
>              -s ejabberd \
>              -ejabberd config \"/opt/ejabberd/etc/jabber/ejabberd/master.cfg\" \
>                        log_path \"/opt/ejabberd/var/log/jabber/ejabberd.log\" \
>              -sasl sasl_error_logger \{file,
> \"/opt/ejabberd/var/log/jabber/sasl.log\"\} \
>              -mnesia dir \"/opt/ejabberd/var/spool/jabber/ejabberd\" \
>              -heart \
>              -detached \
>         ;;
>   stop)
>         echo "Stopping $NAME."
>         echo "rpc:call('ejabberd@`hostname -f`', init, stop, [])." | $ERL -name
> ejabberdstop
> # should be -s in place of -f with -sname in place of -name for other way of
> starting
>         ;;
>   status)
>         echo "Not implemented yet."
>         ;;
>   restart|reload)
>         $0 stop
>         sleep 3
>         $0 start
>         ;;
>   *)
>         echo "Usage: $0 {start|stop|status}"
>         exit 1
> esac
> 
> 
> > 2. How can I install the icq transport for ejabberd? Is there a howto
> > available?
> 
> In the ejabberd Guide there is a section about the listen section: there you
> find more information. Also keep in mind that you can consider pyICQ-t which
> do not needs WPJabber but maybe contains more bugs as it's in an early stage
> of development.
> 
> > 3. How can IU install the web administration?
> 
> You need to add in the listen section a line for that: I am sure it is in the
> Guide somewhere. After doing what is described there you can acces it via
> http://domain:port/admin/
> 
> --
> Mvg, Sander Devrieze.
> 
> xmpp:sander at l4l.be ( http://jabber.l4l.be/ )
> 
> 
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
> 
> 
> 
>


More information about the ejabberd mailing list