anchor.diff:  -author("Feng Lee <feng@emqtt.io>").
   
   -include("emqttd.hrl").
  --include("emqttd_cli.hrl").
  -
  --export([cli/1]).
   
   %% API Function Exports
   -export([start_link/0]).
  
positive.code:     datetime,     % Broker local datetime
      sysdescr      % Broker description
  ]).
  
  %%%=============================================================================
  %%% CLI callback
  %%%=============================================================================
  cli([]) ->
      Funs = [sysdescr, version, uptime, datetime],
      [?PRINT("~-20s~s~n", [Fun, ?MODULE:Fun()]) || Fun <- Funs];
  
  cli(_) ->
      ?PRINT_CMD("broker", "#query broker version, uptime and description").
  
  %%%=============================================================================
  %%% API
  
negative.code: terminate(_Reason, #state{heartbeat = Hb, tick_tref = TRef}) ->
      stop_tick(Hb),
      stop_tick(TRef),
      ok.
  
  code_change(_OldVsn, State, _Extra) ->
  