diff options
Diffstat (limited to 'src/plop_sup.erl')
-rw-r--r-- | src/plop_sup.erl | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/plop_sup.erl b/src/plop_sup.erl index 08ccdcb..1c6602c 100644 --- a/src/plop_sup.erl +++ b/src/plop_sup.erl @@ -5,7 +5,6 @@ -export([start_in_shell/1]). start_link(Args) -> - io:format("plop_sup:start_link got args ~p~n", [Args]), supervisor:start_link({local, ?MODULE}, ?MODULE, Args). %% For testing. @@ -16,14 +15,13 @@ start_in_shell(Args) -> %% Supervisor callback init(Args) -> {ok, {{one_for_one, 3, 10}, - [{the_plop, - {plop, start_link, Args}, % All arguments go to plop. - permanent, - 10000, % Shut down within 10s. - worker, [plop]}, - {the_db, + [{the_db, {db, start_link, []}, permanent, 10000, - worker, [db]} - ]}}. + worker, [db]}, + {the_plop, + {plop, start_link, Args}, % All arguments go to plop. + permanent, + 10000, % Shut down within 10s. + worker, [plop]}]}}. |