Skip to content

Instantly share code, notes, and snippets.

@alexnsolo
Last active May 9, 2016 18:24
Show Gist options
  • Save alexnsolo/3bec8d0164a5cb58fb87ea10df2d18df to your computer and use it in GitHub Desktop.
Save alexnsolo/3bec8d0164a5cb58fb87ea10df2d18df to your computer and use it in GitHub Desktop.
defmodule AcmeUdpLogger do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# We will add our children here later
]
# Start the main supervisor, and restart failed children individually
opts = [strategy: :one_for_one, name: AcmeUdpLogger.Supervisor]
Supervisor.start_link(children, opts)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment