Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.8.9a
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (15 sloc) 0.57 kb
-module(boss_db_sup).
-author('emmiller@gmail.com').
-behaviour(supervisor).
-export([start_link/0, start_link/1]).
-export([init/1]).
start_link() ->
start_link([]).
start_link(StartArgs) ->
supervisor:start_link({local, ?MODULE}, ?MODULE, StartArgs).
init(StartArgs) ->
Args = [{name, {local, boss_db_pool}},
{worker_module, boss_db_controller},
{size, 5}, {max_overflow, 10}|StartArgs],
PoolSpec = {db_controller, {poolboy, start_link, [Args]}, permanent, 2000, worker, [poolboy]},
{ok, {{one_for_one, 10, 10}, [PoolSpec]}}.
Jump to Line
Something went wrong with that request. Please try again.