Restart mnesia application

This commit is contained in:
turtled 2019-06-03 14:42:57 +08:00 committed by Shawn
parent f3fcd16dee
commit f46205daff
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ start() ->
restart(ConfFile) -> restart(ConfFile) ->
reload_config(ConfFile), reload_config(ConfFile),
shutdown(), shutdown(),
ok = application:stop(mnesia),
application:start(mnesia),
reboot(). reboot().
%% @doc Stop emqx application. %% @doc Stop emqx application.