/src/zotonic_sup.erl

http://github.com/zotonic/zotonic · Erlang · 49 lines · 10 code · 11 blank · 28 comment · 0 complexity · fde189fff34951f1404aba9fd798860f MD5 · raw file

  1. %% @author Marc Worrell <marc@worrell.nl>
  2. %% @copyright 2017 Marc Worrell
  3. %% @doc Zotonic umbrella supervisor (empty)
  4. %% Copyright 2017 Marc Worrell
  5. %%
  6. %% Licensed under the Apache License, Version 2.0 (the "License");
  7. %% you may not use this file except in compliance with the License.
  8. %% You may obtain a copy of the License at
  9. %%
  10. %% http://www.apache.org/licenses/LICENSE-2.0
  11. %%
  12. %% Unless required by applicable law or agreed to in writing, software
  13. %% distributed under the License is distributed on an "AS IS" BASIS,
  14. %% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. %% See the License for the specific language governing permissions and
  16. %% limitations under the License.
  17. -module(zotonic_sup).
  18. -behaviour(supervisor).
  19. %% API
  20. -export([start_link/0]).
  21. %% Supervisor callbacks
  22. -export([init/1]).
  23. -define(SERVER, ?MODULE).
  24. %%====================================================================
  25. %% API functions
  26. %%====================================================================
  27. start_link() ->
  28. supervisor:start_link({local, ?SERVER}, ?MODULE, []).
  29. %%====================================================================
  30. %% Supervisor callbacks
  31. %%====================================================================
  32. %% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules}
  33. init([]) ->
  34. {ok, { {one_for_all, 0, 1}, [
  35. ]} }.
  36. %%====================================================================
  37. %% Internal functions
  38. %%====================================================================