瀏覽代碼

Restart mnesia application

turtled 6 年之前
父節點
當前提交
f46205daff
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/emqx.erl

+ 2 - 0
src/emqx.erl

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