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

Start supervisor here (thanks to Stefan Strigler)

SVN Revision: 2200
This commit is contained in:
Badlop 2009-06-16 17:43:43 +00:00
parent 7ed7ca6e1e
commit da6c4f9941

View File

@ -74,9 +74,18 @@ process(_Path, _Request) ->
%%%----------------------------------------------------------------------
%%% BEHAVIOUR CALLBACKS
%%%----------------------------------------------------------------------
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.
stop(_Host) ->
supervisor:terminate_child(ejabberd_sup, ejabberd_http_bind_sup),
ok.