fix: brutal kill emqx_dashboard_listener

This commit is contained in:
Zhongwen Deng 2022-06-17 00:08:03 +08:00
parent 34fe5e67e7
commit 73711d4147
1 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@
-export([init/1]).
-define(CHILD(I), {I, {I, start_link, []}, permanent, 5000, worker, [I]}).
-define(CHILD(I, ShutDown), {I, {I, start_link, []}, permanent, ShutDown, worker, [I]}).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
@ -30,7 +30,7 @@ start_link() ->
init([]) ->
{ok,
{{one_for_one, 5, 100}, [
?CHILD(emqx_dashboard_listener),
?CHILD(emqx_dashboard_token),
?CHILD(emqx_dashboard_monitor)
?CHILD(emqx_dashboard_listener, brutal_kill),
?CHILD(emqx_dashboard_token, 5000),
?CHILD(emqx_dashboard_monitor, 5000)
]}}.