fix(emqx_machine): start terminator in emqx_machine_app

This commit is contained in:
Zaiming Shi 2021-08-06 12:15:20 +02:00
parent 5063d3a2b3
commit 032a49114c
2 changed files with 4 additions and 4 deletions

View File

@ -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().

View File

@ -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.