4
%% Copyright Ericsson AB 2010-2011. All Rights Reserved.
6
%% The contents of this file are subject to the Erlang Public License,
7
%% Version 1.1, (the "License"); you may not use this file except in
8
%% compliance with the License. You should have received a copy of the
9
%% Erlang Public License along with this software. If not, it can be
10
%% retrieved online at http://www.erlang.org/.
12
%% Software distributed under the License is distributed on an "AS IS"
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
%% the License for the specific language governing rights and limitations
21
%% The supervisor of the static server processes.
24
-module(diameter_misc_sup).
26
-behaviour(supervisor).
28
-export([start_link/0]). %% supervisor start
30
%% supervisor callback
33
-define(CHILDREN, [diameter_sync, %% serialization
34
diameter_stats, %% statistics counter management
35
diameter_reg, %% service/property publishing
36
diameter_peer, %% remote peer manager
37
diameter_config]). %% configuration/restart
42
SupName = {local, ?MODULE},
43
supervisor:start_link(SupName, ?MODULE, []).
48
Flags = {one_for_one, 1, 5},
49
Workers = lists:map(fun spec/1, ?CHILDREN),
50
{ok, {Flags, Workers}}.
54
{Mod, start_link, []},