|
|
@@ -34,18 +34,18 @@ start(_Type, _Args) ->
|
|
|
{ok, Sup} = emqx_sup:start_link(),
|
|
|
ok = emqx_modules:load(),
|
|
|
ok = emqx_plugins:init(),
|
|
|
- emqx_plugins:load(),
|
|
|
+ _ = emqx_plugins:load(),
|
|
|
emqx_boot:is_enabled(listeners)
|
|
|
andalso (ok = emqx_listeners:start()),
|
|
|
start_autocluster(),
|
|
|
register(emqx, self()),
|
|
|
- emqx_alarm_handler:load(),
|
|
|
+ ok = emqx_alarm_handler:load(),
|
|
|
print_vsn(),
|
|
|
{ok, Sup}.
|
|
|
|
|
|
-spec(stop(State :: term()) -> term()).
|
|
|
stop(_State) ->
|
|
|
- emqx_alarm_handler:unload(),
|
|
|
+ ok = emqx_alarm_handler:unload(),
|
|
|
emqx_boot:is_enabled(listeners)
|
|
|
andalso emqx_listeners:stop(),
|
|
|
emqx_modules:unload().
|