Files
n8n-openai-adapter/lib/elixir/src/elixir_sup.erl
T
José Valim c80b211445 Merge pull request #2801 from fishcakez/app_env
Move application state out of application env
Conflicts:
	lib/elixir/lib/uri.ex
	lib/iex/lib/iex/server.ex
2015-01-24 14:07:46 +01:00

42 lines
1.3 KiB
Erlang

-module(elixir_sup).
-behaviour(supervisor).
-export([init/1, start_link/0]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, ok).
init(ok) ->
Workers = [
{
elixir_config,
{elixir_config, start_link, []},
permanent, % Restart = permanent | transient | temporary
2000, % Shutdown = brutal_kill | int() >= 0 | infinity
worker, % Type = worker | supervisor
[elixir_config] % Modules = [Module] | dynamic
},
{
elixir_code_server,
{elixir_code_server, start_link, []},
permanent, % Restart = permanent | transient | temporary
2000, % Shutdown = brutal_kill | int() >= 0 | infinity
worker, % Type = worker | supervisor
[elixir_code_server] % Modules = [Module] | dynamic
},
{
elixir_counter,
{elixir_counter, start_link, []},
permanent, % Restart = permanent | transient | temporary
2000, % Shutdown = brutal_kill | int() >= 0 | infinity
worker, % Type = worker | supervisor
[elixir_counter] % Modules = [Module] | dynamic
}
],
{ok, {{one_for_one, 3, 10}, Workers}}.