How to run ejabberd in background

Hi,

I have installed ejabberd 2.0 with no problems.
My system is:
- Linux Fedora Core 2 + kernel 2.6.10-1.8_FC2
- ejabberd-1.0.0
- expat-1.95.7-1.1
- expat-devel-1.95.7-1.1
- otp_src_R10B-9

Then, I start it with the command:

Quote:

erl -pa /var/lib/ejabberd/ebin \
-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/spool\"

and clients like Gaim get to connect it fine.

But, if I put & for background running, clients don't connect anymore.

What's the problem?

Thanks for any help,

To start ejabberd in

To start ejabberd in background (daemon mode), add this option to your command line: -detached

To stop ejabberd you shouldn't kill the system process. Better use ejabberd_ctl.

O programa ejabberctl, que

The program ejabberctl, in subdir tools from source code of ejabberd 1.0.0, is arising this error message after run:

Quote:

[root@intersite tools]# ./ejabberdctl
{"init terminating in do_boot",{undef,[{ejabberd_ctl,start,[]},{init,start_it,1},{init,start_em,1}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

The dump file has many lines, but the first are:

Quote:

=erl_crash_dump:0.1
Thu Jan 26 11:45:12 2006
Slogan: init terminating in do_boot ()
System version: Erlang (BEAM) emulator version 5.4.12 [source] [hipe]
Compiled: Wed Jan 11 12:18:24 2006
Atoms: 3823
=memory
total: 2228385
processes: 246584
processes_used: 240616
system: 1981801
atom: 186997
atom_used: 156151
binary: 1040
code: 1066044
ets: 104064
=hash_table:atom_tab
size: 3203
used: 2219
objs: 3823
depth: 6
=index_table:atom_tab
size: 3900
limit: 1048576
used: 3823
rate: 100
=hash_table:module_code
size: 97
used: 49
objs: 60
depth: 3

Re: O programa ejabberctl, que

edilmar wrote:

The program ejabberctl, in subdir tools from source code of ejabberd 1.0.0, is arising this error message after run:

Copy that file to the ebin/ directory (with the *.beam files) and it should work.

Syndicate content