Yeah, I would just launch them a supervisor made specifically for your gen_server, and launch the supervisor in priv/init.
Or make a separate application altogether to deploy as a dependency. On Thu, Jul 31, 2014 at 5:12 AM, David Welton <[email protected]> wrote: > One idea would be to create a separate application, if it's not > tightly linked to CB. Then you could create a release with relx, and > have that be responsible for starting everything, including your other > application and its supervisors and workers. Otherwise, you could > start things in a priv/init/ script. > > On Thu, Jul 31, 2014 at 12:00 PM, Caiyun Deng <[email protected]> > wrote: >> Hi! >> I have some gen_server and i want they be supervised by some supervisor. >> In the OTP application, i will supervise them by a top_sup. >> Now in ChicagoBoss, I know i should start them in priv/init/xxx.erl, But i >> don't know how to supervise them. >> Where is my sup in ChicagoBoss? Should i create one? Or should i create an >> application in ChicagoBoss? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ChicagoBoss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> Visit this group at http://groups.google.com/group/chicagoboss. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/chicagoboss/20bf12f5-8f7e-4f1e-b34a-c6f910741338%40googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > > > -- > David N. Welton > > http://www.welton.it/davidw/ > > http://www.dedasys.com/ > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/CA%2Bb9R_tGTxwGTsJegWf9N4%3D8UwCRwmeny31s4WaGF7LEzuNqFg%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- Jesse Gumm Owner, Sigma Star Systems 414.940.4866 || sigma-star.com || @jessegumm -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/CAPTXyXdzpAwZN4FohDy0ndcKFumzWAbk1xGixMdarTouuV6y6Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
