ejabbered stops, after ssh terminal is closed.

Hi All,

I have installed ejabbered from source. And start this with following command into my ssh terminal. My problem is ejabbered stops, after ssh termial is closed. Please help me so that ejabbered remained started even ssh trminal is closed.

erl -pa /usr/local/jaber/var/lib/ejabberd/ebin \
-sname ejabberd \
-s ejabberd \
-ejabberd config \"/usr/local/jaber/etc/ejabberd/ejabberd.cfg\" \
log_path \"/usr/local/jaber/var/log/ejabberd/ejabberd.log\" \
# -sasl sasl_error_logger \{file,\"/usr/local/jaber/var/log/ejabberd/sasl.log\"\} \
-mnesia dir \"/usr/local/jaber/var/lib/ejabberd/spool\" -detached 1>> \"/usr/local/jaber/var/log/ejabberd/ejabberd1.log\" 2>&1

Thanks & Regards
Sachin Sharma

The '-detached' parameter

The '-detached' parameter tells Erlang to run on background, as you want. You have this parameter on your command line, so ejabberd should keep running when you close the SSH session.

It's strange that ejabberd works correctly until you close the SSH session.

Syndicate content