blob: 8af7ecdad93427dfd19ca58d69c0eaeed69dad4b [file] [log] [blame]
Harald Welte20ad1ba2011-02-07 20:50:39 +01001% OTP Supervisor for MGW NAT
2
3% (C) 2011 by Harald Welte <laforge@gnumonks.org>
4% (C) 2011 OnWaves
5%
6% All Rights Reserved
7%
8% This program is free software; you can redistribute it and/or modify
9% it under the terms of the GNU Affero General Public License as
10% published by the Free Software Foundation; either version 3 of the
11% License, or (at your option) any later version.
12%
13% This program is distributed in the hope that it will be useful,
14% but WITHOUT ANY WARRANTY; without even the implied warranty of
15% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16% GNU General Public License for more details.
17%
18% You should have received a copy of the GNU Affero General Public License
19% along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21-module(mgw_nat_sup).
22-behavior(supervisor).
23
24-export([start_link/0]).
25-export([init/1]).
26
27start_link() ->
28 supervisor:start_link({local, ?MODULE}, ?MODULE, []).
29
Harald Welte5df83382011-03-08 15:17:32 +010030init(Args) ->
31 MgwChild = {mgw_nat_usr, {mgw_nat_usr, start_link, [Args]},
Harald Welte20ad1ba2011-02-07 20:50:39 +010032 permanent, 2000, worker, [mgw_nat_usr, sctp_handler, mgw_nat]},
Harald Welteeb4913f2011-02-25 21:34:22 +010033 {ok,{{one_for_all,60,600}, [MgwChild]}}.