defmodule ExampleSuper do
use Supervisor
def start_link(ns) do
Supervisor.start_link(__MODULE__, ns )
end
def init(ns) do
children = [
worker(Database, [ns]),
worker(CustomerService, [ns]),
worker(Info, [ns]),
worker(Shipper, [ns]),
worker(User, [ns]),
worker(Order, [ns])
]
supervise(children, strategy: :one_for_all)
end
end