diff options
Diffstat (limited to 'lib/octochat/supervisor.ex')
-rw-r--r-- | lib/octochat/supervisor.ex | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/octochat/supervisor.ex b/lib/octochat/supervisor.ex new file mode 100644 index 0000000..b26f4de --- /dev/null +++ b/lib/octochat/supervisor.ex @@ -0,0 +1,19 @@ +defmodule Octochat.Supervisor do + @moduledoc """ + Octochat OTP Supervisor tree + """ + + use Supervisor + + def start_link do + Supervisor.start_link(__MODULE__, [], name: __MODULE__) + end + + def init(_) do + children = [] + + opts = [strategy: :one_for_one] + supervise(children, opts) + end + +end |