Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

37 wiersze
1.1 KiB

  1. %%%-------------------------------------------------------------------
  2. %% @copyright {{copyright_holder}} ({{copyright_year}})
  3. %% @author {{author_name}} <{{author_email}}>
  4. %% @doc {{appid}} top level supervisor.
  5. %% @end
  6. %%%-------------------------------------------------------------------
  7. -module({{appid}}_sup).
  8. -behaviour(supervisor).
  9. %% API
  10. -export([start_link/0]).
  11. %% Supervisor callbacks
  12. -export([init/1]).
  13. -define(SERVER, ?MODULE).
  14. %%====================================================================
  15. %% API functions
  16. %%====================================================================
  17. start_link() ->
  18. supervisor:start_link({local, ?SERVER}, ?MODULE, []).
  19. %%====================================================================
  20. %% Supervisor callbacks
  21. %%====================================================================
  22. %% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules}
  23. init([]) ->
  24. {ok, { {one_for_all, 0, 1}, []} }.
  25. %%====================================================================
  26. %% Internal functions
  27. %%====================================================================