aboutsummaryrefslogtreecommitdiff
path: root/lib/octonetcat/supervisor.ex
diff options
context:
space:
mode:
authorkballou <kballou@devnulllabs.io>2017-11-16 22:41:26 -0700
committerkballou <kballou@devnulllabs.io>2017-11-24 09:54:20 -0700
commit263ec967e18a0dbb874f2297cbeb7b3ef042cd9a (patch)
treeb3afc7450e221246aca3449808aacf1617b310e3 /lib/octonetcat/supervisor.ex
parent40a78e7cec8e783a6c2c11e222616f42f46eaaef (diff)
downloadoctonetcat-263ec967e18a0dbb874f2297cbeb7b3ef042cd9a.tar.gz
octonetcat-263ec967e18a0dbb874f2297cbeb7b3ef042cd9a.tar.xz
Add initial OTP app and supervisor
Diffstat (limited to 'lib/octonetcat/supervisor.ex')
-rw-r--r--lib/octonetcat/supervisor.ex18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/octonetcat/supervisor.ex b/lib/octonetcat/supervisor.ex
new file mode 100644
index 0000000..e66b4e7
--- /dev/null
+++ b/lib/octonetcat/supervisor.ex
@@ -0,0 +1,18 @@
+defmodule Octonetcat.Supervisor do
+ @moduledoc """
+ Root Octonetcat Supervosor
+ """
+
+ 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