* feat(emqx_conf): move conf manager for emqx_machine to emqx_conf * chore(emqx_conf): change emqx:get_config/2 to emqx_conf:get/2 * fix: common test failed * fix: badmatch by typo wrong key * fix(emqx_conf): get the wrong core nodes * fix(emqx_conf): get core node's tnx_id not latest tnx_id * fix: add ro_transation when copy conf file * fix: delete debug info * fix: change ekka_rlog to mria_rlog * fix: remove cluster_rpc from emqx_machine. * fix: don't call ekka:start/0 explicitly * fix: ekka should be start in emqx_machine
25 lines
568 B
Erlang
25 lines
568 B
Erlang
%%%-------------------------------------------------------------------
|
|
%% @doc emqx_authz public API
|
|
%% @end
|
|
%%%-------------------------------------------------------------------
|
|
|
|
-module(emqx_authz_app).
|
|
|
|
-behaviour(application).
|
|
|
|
-include("emqx_authz.hrl").
|
|
|
|
-export([start/2, stop/1]).
|
|
|
|
start(_StartType, _StartArgs) ->
|
|
ok = mria_rlog:wait_for_shards([?ACL_SHARDED], infinity),
|
|
{ok, Sup} = emqx_authz_sup:start_link(),
|
|
ok = emqx_authz:init(),
|
|
{ok, Sup}.
|
|
|
|
stop(_State) ->
|
|
emqx_conf:remove_handler(?CONF_KEY_PATH),
|
|
ok.
|
|
|
|
%% internal functions
|