mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Halt ejabberd if the top supervisor fails to start
This commit is contained in:
parent
f953621ed2
commit
054413d8f4
@ -60,7 +60,9 @@ start(normal, _Args) ->
|
||||
lists:foreach(fun erlang:garbage_collect/1, processes()),
|
||||
{ok, SupPid};
|
||||
Err ->
|
||||
Err
|
||||
?CRITICAL_MSG("Failed to start ejabberd application: ~p", [Err]),
|
||||
timer:sleep(1000),
|
||||
halt("Refer to ejabberd log files to diagnose the problem")
|
||||
end;
|
||||
start(_, _) ->
|
||||
{error, badarg}.
|
||||
|
Loading…
Reference in New Issue
Block a user