mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Run ejabberd_started hook earlier
This commit is contained in:
parent
73af98a8dc
commit
d8f831de09
@ -55,11 +55,11 @@ start(normal, _Args) ->
|
|||||||
ejabberd_system_monitor:start(),
|
ejabberd_system_monitor:start(),
|
||||||
register_elixir_config_hooks(),
|
register_elixir_config_hooks(),
|
||||||
ejabberd_cluster:wait_for_sync(infinity),
|
ejabberd_cluster:wait_for_sync(infinity),
|
||||||
|
ejabberd_hooks:run(ejabberd_started, []),
|
||||||
{T2, _} = statistics(wall_clock),
|
{T2, _} = statistics(wall_clock),
|
||||||
?INFO_MSG("ejabberd ~s is started in the node ~p in ~.2fs",
|
?INFO_MSG("ejabberd ~s is started in the node ~p in ~.2fs",
|
||||||
[ejabberd_config:get_version(),
|
[ejabberd_config:get_version(),
|
||||||
node(), (T2-T1)/1000]),
|
node(), (T2-T1)/1000]),
|
||||||
ejabberd_hooks:run(ejabberd_started, []),
|
|
||||||
lists:foreach(fun erlang:garbage_collect/1, processes()),
|
lists:foreach(fun erlang:garbage_collect/1, processes()),
|
||||||
{ok, SupPid};
|
{ok, SupPid};
|
||||||
Err ->
|
Err ->
|
||||||
|
Loading…
Reference in New Issue
Block a user