./ct_report/coverage/ejabberd_sm_backend_sup.COVER.html

1 %%%-------------------------------------------------------------------
2 %%% @author Konrad Kaplita
3 %%% @copyright (C) 2011, Konrad Kaplita
4 %%% @doc
5 %%%
6 %%% @end
7 %%% Created : 18 Nov 2011 by Konrad Kaplita
8 %%%-------------------------------------------------------------------
9 -module(ejabberd_sm_backend_sup).
10
11 -behaviour(supervisor).
12
13 %% API
14 -export([start_link/0]).
15
16 %% Supervisor callbacks
17 -export([init/1]).
18
19 -ignore_xref([start_link/0]).
20
21 -define(SERVER, ?MODULE).
22
23 %%%===================================================================
24 %%% API functions
25 %%%===================================================================
26
27 %%--------------------------------------------------------------------
28 %% @doc
29 %% Starts the supervisor
30 %% @end
31 %%--------------------------------------------------------------------
32 -spec start_link() -> {ok, Pid :: pid()} | ignore | {error, Reason :: term()}.
33 start_link() ->
34 53 supervisor:start_link({local, ?SERVER}, ?MODULE, []).
35
36 %%%===================================================================
37 %%% Supervisor callbacks
38 %%%===================================================================
39
40 %%--------------------------------------------------------------------
41 %% @private
42 %% @doc
43 %% Whenever a supervisor is started using supervisor:start_link/[2, 3],
44 %% this function is called by the new process to find out about
45 %% restart strategy, maximum restart frequency and child
46 %% specifications.
47 %% @end
48 %%--------------------------------------------------------------------
49 -spec init([]) -> {ok, {{one_for_one, 1000, 3600}, []}}.
50 init([]) ->
51 53 {ok, {{one_for_one, 1000, 3600}, []}}.
Line Hits Source