aboutsummaryrefslogtreecommitdiffstats
path: root/src/mysqlerl_sup.erl
blob: 9a3c4e80b5e67b2d5fe3716df344854aba86117d (plain)
1
2
3
4
5
6
7
8
9
10
11
-module(mysqlerl_sup).
-author('bjc@kublai.com').

-behavior(supervisor).

-export([init/1]).

init([Name]) ->
    Connection = {Name, {mysqlerl_connection, start_link, []},
                  temporary, 7000, worker, [mysqlerl_connection]},
    {ok, {{simple_one_for_one, 0, 3600}, [Connection]}}.