mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
make http-bind restartable (thanks to Andreas Köhler)(EJAB-1318)
This commit is contained in:
parent
ce9ce8293b
commit
a73d451576
@ -120,7 +120,7 @@ start(_Host, _Opts) ->
|
|||||||
% mod_http_bind is already started so it will not be started again
|
% mod_http_bind is already started so it will not be started again
|
||||||
ok;
|
ok;
|
||||||
{error, Error} ->
|
{error, Error} ->
|
||||||
{'EXIT', {start_child_error, Error}}
|
exit({start_child_error, Error})
|
||||||
end.
|
end.
|
||||||
|
|
||||||
stop(_Host) ->
|
stop(_Host) ->
|
||||||
@ -128,7 +128,13 @@ stop(_Host) ->
|
|||||||
ok ->
|
ok ->
|
||||||
ok;
|
ok;
|
||||||
{error, Error} ->
|
{error, Error} ->
|
||||||
{'EXIT', {terminate_child_error, Error}}
|
exit({terminate_child_error, Error})
|
||||||
|
end,
|
||||||
|
case supervisor:delete_child(ejabberd_sup, ejabberd_http_bind_sup) of
|
||||||
|
ok ->
|
||||||
|
ok;
|
||||||
|
{error, Error2} ->
|
||||||
|
exit({delete_child_error, Error2})
|
||||||
end.
|
end.
|
||||||
|
|
||||||
setup_database() ->
|
setup_database() ->
|
||||||
|
Loading…
Reference in New Issue
Block a user