mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Start supervisor here (thanks to Stefan Strigler)
SVN Revision: 2263
This commit is contained in:
parent
7d62dff7e5
commit
d019405d51
@ -74,9 +74,18 @@ process(_Path, _Request) ->
|
|||||||
%%%----------------------------------------------------------------------
|
%%%----------------------------------------------------------------------
|
||||||
%%% BEHAVIOUR CALLBACKS
|
%%% BEHAVIOUR CALLBACKS
|
||||||
%%%----------------------------------------------------------------------
|
%%%----------------------------------------------------------------------
|
||||||
|
|
||||||
start(_Host, _Opts) ->
|
start(_Host, _Opts) ->
|
||||||
|
supervisor:start_child(
|
||||||
|
ejabberd_sup,
|
||||||
|
{ejabberd_http_bind_sup,
|
||||||
|
{ejabberd_tmp_sup, start_link,
|
||||||
|
[ejabberd_http_bind_sup, ejabberd_http_bind]},
|
||||||
|
permanent,
|
||||||
|
infinity,
|
||||||
|
supervisor,
|
||||||
|
[ejabberd_tmp_sup]}),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
stop(_Host) ->
|
stop(_Host) ->
|
||||||
|
supervisor:terminate_child(ejabberd_sup, ejabberd_http_bind_sup),
|
||||||
ok.
|
ok.
|
||||||
|
Loading…
Reference in New Issue
Block a user