Last active
May 9, 2016 18:24
-
-
Save alexnsolo/3bec8d0164a5cb58fb87ea10df2d18df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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