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

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