pooler_app.erl 468 B

1234567891011121314151617181920
  1. -module(pooler_app).
  2. -behaviour(application).
  3. %% Application callbacks
  4. -export([start/2, stop/1]).
  5. %% ===================================================================
  6. %% Application callbacks
  7. %% ===================================================================
  8. start(_StartType, _StartArgs) ->
  9. application:start(crypto),
  10. case pooler_sup:start_link() of
  11. {ok, Pid} -> {ok, Pid};
  12. Other -> {error, Other}
  13. end.
  14. stop(_State) ->
  15. ok.