mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Switch workers from temporary to transient
This commit is contained in:
parent
fd365b2893
commit
a080322055
@ -76,7 +76,7 @@ start() ->
|
|||||||
application:set_env(oauth2, expiry_time, Expire),
|
application:set_env(oauth2, expiry_time, Expire),
|
||||||
application:start(oauth2),
|
application:start(oauth2),
|
||||||
ChildSpec = {?MODULE, {?MODULE, start_link, []},
|
ChildSpec = {?MODULE, {?MODULE, start_link, []},
|
||||||
temporary, 1000, worker, [?MODULE]},
|
transient, 1000, worker, [?MODULE]},
|
||||||
supervisor:start_child(ejabberd_sup, ChildSpec),
|
supervisor:start_child(ejabberd_sup, ChildSpec),
|
||||||
ejabberd_commands:register_commands(get_commands_spec()),
|
ejabberd_commands:register_commands(get_commands_spec()),
|
||||||
ok.
|
ok.
|
||||||
|
@ -63,7 +63,7 @@ start_link(Host, Opts) ->
|
|||||||
start(Host, Opts) ->
|
start(Host, Opts) ->
|
||||||
Proc = gen_mod:get_module_proc(Host, ?PROCNAME),
|
Proc = gen_mod:get_module_proc(Host, ?PROCNAME),
|
||||||
ChildSpec = {Proc, {?MODULE, start_link, [Host, Opts]},
|
ChildSpec = {Proc, {?MODULE, start_link, [Host, Opts]},
|
||||||
temporary, 1000, worker, [?MODULE]},
|
transient, 1000, worker, [?MODULE]},
|
||||||
supervisor:start_child(ejabberd_sup, ChildSpec).
|
supervisor:start_child(ejabberd_sup, ChildSpec).
|
||||||
|
|
||||||
stop(Host) ->
|
stop(Host) ->
|
||||||
|
@ -90,7 +90,7 @@ start(Host, Opts) ->
|
|||||||
start_supervisor(Host),
|
start_supervisor(Host),
|
||||||
Proc = gen_mod:get_module_proc(Host, ?PROCNAME),
|
Proc = gen_mod:get_module_proc(Host, ?PROCNAME),
|
||||||
ChildSpec = {Proc, {?MODULE, start_link, [Host, Opts]},
|
ChildSpec = {Proc, {?MODULE, start_link, [Host, Opts]},
|
||||||
temporary, 1000, worker, [?MODULE]},
|
transient, 1000, worker, [?MODULE]},
|
||||||
supervisor:start_child(ejabberd_sup, ChildSpec).
|
supervisor:start_child(ejabberd_sup, ChildSpec).
|
||||||
|
|
||||||
stop(Host) ->
|
stop(Host) ->
|
||||||
|
@ -95,7 +95,7 @@ start_link(Host, Opts) ->
|
|||||||
start(Host, Opts) ->
|
start(Host, Opts) ->
|
||||||
Proc = gen_mod:get_module_proc(Host, ?PROCNAME),
|
Proc = gen_mod:get_module_proc(Host, ?PROCNAME),
|
||||||
ChildSpec = {Proc, {?MODULE, start_link, [Host, Opts]},
|
ChildSpec = {Proc, {?MODULE, start_link, [Host, Opts]},
|
||||||
temporary, 1000, worker, [?MODULE]},
|
transient, 1000, worker, [?MODULE]},
|
||||||
supervisor:start_child(ejabberd_sup, ChildSpec).
|
supervisor:start_child(ejabberd_sup, ChildSpec).
|
||||||
|
|
||||||
stop(Host) ->
|
stop(Host) ->
|
||||||
|
@ -81,7 +81,7 @@ start_link(Host, Opts) ->
|
|||||||
start(Host, Opts) ->
|
start(Host, Opts) ->
|
||||||
Proc = gen_mod:get_module_proc(Host, ?PROCNAME),
|
Proc = gen_mod:get_module_proc(Host, ?PROCNAME),
|
||||||
ChildSpec = {Proc, {?MODULE, start_link, [Host, Opts]},
|
ChildSpec = {Proc, {?MODULE, start_link, [Host, Opts]},
|
||||||
temporary, 1000, worker, [?MODULE]},
|
transient, 1000, worker, [?MODULE]},
|
||||||
supervisor:start_child(ejabberd_sup, ChildSpec).
|
supervisor:start_child(ejabberd_sup, ChildSpec).
|
||||||
|
|
||||||
stop(Host) ->
|
stop(Host) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user