No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

37 líneas
1.1 KiB

hace 10 años
hace 10 años
hace 10 años
hace 10 años
hace 10 años
hace 10 años
hace 10 años
hace 10 años
hace 10 años
hace 10 años
  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. %%====================================================================