Shutdown and reboot ranch application

This commit is contained in:
Feng Lee 2018-08-29 17:52:55 +08:00
parent 1a7d60a7e3
commit e62d215792
1 changed files with 2 additions and 2 deletions

View File

@ -166,8 +166,8 @@ shutdown() ->
shutdown(Reason) ->
emqx_logger:error("emqx shutdown for ~s", [Reason]),
emqx_plugins:unload(),
lists:foreach(fun application:stop/1, [emqx, ekka, cowboy, esockd, gproc]).
lists:foreach(fun application:stop/1, [emqx, ekka, cowboy, ranch, esockd, gproc]).
reboot() ->
lists:foreach(fun application:start/1, [gproc, esockd, cowboy, ekka, emqx]).
lists:foreach(fun application:start/1, [gproc, esockd, ranch, cowboy, ekka, emqx]).