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

Sander Devrieze s.devrieze at pandora.be
Fri Oct 15 22:55:36 MSD 2004


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/ )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.jabber.ru/pipermail/ejabberd/attachments/20041015/505cc669/attachment.bin


More information about the ejabberd mailing list