fix(emqx_machine): start terminator in emqx_machine_app
This commit is contained in:
parent
5063d3a2b3
commit
032a49114c
|
@ -51,9 +51,7 @@ start() ->
|
||||||
|
|
||||||
ok = print_vsn(),
|
ok = print_vsn(),
|
||||||
|
|
||||||
ok = start_autocluster(),
|
ok = start_autocluster().
|
||||||
%% NOTE: keep this to the end
|
|
||||||
ok = emqx_machine_terminator:start().
|
|
||||||
|
|
||||||
graceful_shutdown() ->
|
graceful_shutdown() ->
|
||||||
emqx_machine_terminator:graceful_wait().
|
emqx_machine_terminator:graceful_wait().
|
||||||
|
|
|
@ -24,7 +24,9 @@
|
||||||
|
|
||||||
start(_Type, _Args) ->
|
start(_Type, _Args) ->
|
||||||
ok = emqx_machine:start(),
|
ok = emqx_machine:start(),
|
||||||
emqx_machine_sup:start_link().
|
{ok, Sup} = emqx_machine_sup:start_link(),
|
||||||
|
ok = emqx_machine_terminator:start(),
|
||||||
|
{ok, Sup}.
|
||||||
|
|
||||||
stop(_State) ->
|
stop(_State) ->
|
||||||
ok.
|
ok.
|
||||||
|
|
Loading…
Reference in New Issue