25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +01:00

* src/ejabberd_ctl.erl: The status now only returns "started" if

ejabberd is started and ready to accept requests.

SVN Revision: 554
This commit is contained in:
Mickaël Rémond 2006-04-26 22:28:05 +00:00
parent d3777ba590
commit bd4c18516c
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-04-27 Mickael Remond <mickael.remond@process-one.net>
* src/ejabberd_ctl.erl: The status now only returns "started" if
ejabberd is started and ready to accept requests.
2006-04-24 Alexey Shchepin <alexey@sevcom.net> 2006-04-24 Alexey Shchepin <alexey@sevcom.net>
* doc/guide.tex: Added a documentation for max_stanza_size option * doc/guide.tex: Added a documentation for max_stanza_size option

View File

@ -45,8 +45,15 @@ init() ->
process(["status"]) -> process(["status"]) ->
{InternalStatus, ProvidedStatus} = init:get_status(), {InternalStatus, ProvidedStatus} = init:get_status(),
io:format("Node ~p is ~p. Status: ~p~n", io:format("Node ~p is ~p. Status: ~p~n",
[node(), InternalStatus, ProvidedStatus]), [node(), InternalStatus, ProvidedStatus]),
?STATUS_SUCCESS; case lists:keysearch(ejabberd, 1, application:which_applications()) of
false ->
io:format("ejabberd is not running~n", []),
?STATUS_ERROR;
{value,_Version} ->
io:format("ejabberd is running~n", []),
?STATUS_SUCCESS
end;
process(["stop"]) -> process(["stop"]) ->
init:stop(), init:stop(),