[erlang-questions] running multiple instance of app release

Geib, Mark Mark.Geib@REDACTED
Thu Apr 24 23:09:44 CEST 2014

I recently decided to change the way I build erlang applications for delivery to my internal customers. Prior to this change my deliverable was basically the ebin, maybe the include, directory for my application that would be located in /usr/lib/me/lib/myapps/.... To run the application I would export ERL_LIBS as /usr/lib/me/ the start the node with -sname -config, etc. and off it went. In this way I can run the application many times with different -sname args.

Now I am building releases with rebar. However, one thing I don't understand is how I can run more than one instance of the application on the same host. It appears that the generated script for starting/stopping the application does not support command line options/arguments. Without being able to set the node name how can run the same app more than once.

Releases are very attractive for my group, but what we need is to able to do something like:
	/opt/me/myapp/bin/myapp start -sname node01 -config node01
and then
	/opt/me/myapp/bin/myapp start -sname node02 -config node02


Mark Geib
Principal Engineer
Cheyenne Software Engineering
mark.geib@REDACTED / 35-215

“We, the unwilling, led by the unknowing, are doing the impossible for the ungrateful. We have done so much, for so long, with so little, we are now qualified to do anything with nothing.” 
― Mother Teresa

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140424/6569b17a/attachment.bin>

More information about the erlang-questions mailing list