aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sasl/doc/src/rel/sup.2.erl
blob: 783da18f2f9f19a0bdb9fcd628c2d60467daa95a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
-module(sup).
-vsn(2).
-behaviour(supervisor).
-export([init/1]).

init([]) ->
    SupFlags = {one_for_one, 4, 3600},
    GS1 = {gs1, {gs1, start_link, []}, permanent, 2000, worker, [gs1]},  
    GS2 = {gs2, {gs2, start_link, []}, permanent, 2000, worker, [gs2]},  
    {ok, {SupFlags, [GS1, GS2]}}.