[ejabberd] getting started with ejabberd...

Alexey Shchepin alexey at sevcom.net
Mon Sep 1 22:03:58 MSD 2003

Hello, Marshall!

On Sat, 30 Aug 2003 22:47:37 -0700, you said:

 MR> new question:

 MR> what script do people use to start ejabberd under rc. i suspect it
 MR> involves doing

 MR>     erl -noinput ...

As ermine mentioned, -detached is better because it also automatically detach

 MR> under netbsd, the ideal situation is for the daemon to put its pid in a
 MR> file, so you can HUP or KILL the daemon as needed...

If you start it with '-name ejabberd', then to shutdown use this:

echo "rpc:call('ejabberd at alex.sevcom.net', init, stop, [])." | erl -name ejabberdstop > /dev/null

Replace 'alex.sevcom.net' to your domain and run this from same user as you run
ejabberd (to have access to send command to this process.  you can also specify
magic cookie (with -setcookie) to stop/restart it remotely
(see 'erl -man auth')).

And replace "stop" with "restart" if you wish to restart ejabberd.

More information about the ejabberd mailing list