Starting applications, supervisors and long lived processes in a ChicagoBoss project
59 views
Skip to first unread message
Juan Jose Comellas
unread,
May 30, 2012, 10:25:48 PM5/30/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chica...@googlegroups.com
Suppose I needed to start other applications that my code depends on in a ChicagoBoss project, how would I go about it? What is the correct place to do it? And what about my own supervisors or other long lived processes? Is there something like OTP's application:start/2 where I can start my own long-lived processes?
Where should I put the configuration that will feed an OTP application's environment (the app.config normally passed with the -config parameter)? Is boss.config the place for this too?
Thanks,
Juanjo
Kai Janson
unread,
May 30, 2012, 10:32:01 PM5/30/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chica...@googlegroups.com
Hi Juan,
You can add your additional application startup calls into
priv/init/qr_01_news.erl
like this:
init() ->
application:start(eunit),
application:start(erlcron),
.
.
.
or, if you like you can create more files in this very same directory and add your start/stop application calls in there.