[erlang-questions] Adding a second supervisor / gen_server to an application?

Armando Di Cianno <>
Tue Nov 23 19:18:19 CET 2010


On Tue, Nov 23, 2010 at 1:15 PM, Jesper Louis Andersen
<> wrote:
> Build a tree of supervisors.

/me facepalm at my own question

The obviousness of this completely alluded me. Thanks!

__armando


>
> On Tue, Nov 23, 2010 at 7:12 PM, Armando Di Cianno
> <> wrote:
>> I have an application (behavior) implemented that starts a supervisor,
>> which takes care of starting the server/s (gen_server). This server
>> accepts many connections, and I believe I generally have the
>> supervisor <-> gen_server interaction laid out correctly.
>>
>> I would like to add a second server to the application, and for it to
>> have it's own supervisor. The second server will be cleaning up
>> garbage the first server/s creates, so there only needs to be one.
>>
>> Is a call to a second supervisor:start_link() normal or "ok" to add to
>> applicaiton:start()? I'm guessing the answer is no, since the return
>> value from application start is the {ok, Pid} from the first
>> supervisor.
>>
>> Thanks for any input,
>> __armando
>>
>> ________________________________________________________________
>> erlang-questions (at) erlang.org mailing list.
>> See http://www.erlang.org/faq.html
>> To unsubscribe; mailto:
>>
>>
>
>
>
> --
> J.
>


More information about the erlang-questions mailing list