mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
change mod_offline restart type
This commit is contained in:
parent
5be957f23b
commit
f55de94314
@ -92,7 +92,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