PageRenderTime 10ms CodeModel.GetById 7ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

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