summaryrefslogtreecommitdiff
path: root/test/upgrade_project/apps/dummy/src/dummy_sup.erl
blob: b5617c76bb8c508453d7f20fb76ae822b95d03f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-module(dummy_sup).
-behaviour(supervisor).

-export([start_link/0]).
-export([init/1]).

start_link() ->
    supervisor:start_link({local, ?MODULE}, ?MODULE, []).

init([]) ->
    Dummy = {dummy_server,
             {dummy_server, start_link, []},
             permanent, 5000, worker, [dummy_server]},

    {ok, {{one_for_one, 10, 10}, [Dummy]}}.