[erlang-questions] suggestions on how to start an erlang application from os shell script

Paul Mineiro paul-trapexit@REDACTED
Tue May 5 18:59:23 CEST 2009


Mark,

We use debian, and developed a system called erlrc for integrating erlang
with OS package management (e.g., apt).

http://dukesoferl.blogspot.com/2009/04/erlrc-erlang-factory-talk.html

-- p

On Tue, 5 May 2009, Mark Geib wrote:

> I have created an erlang application using the OTP structure.
>
> During development I have been doing
> erl -boot start_sasl ... then
> application:start(myapp).
>
> Now I am ready to package and deploy the app. We use debian systems here
> so I need to build a debian package to deploy from. The problem is I
> have not found a good way to start the app from the command line, i.e. a
> os shell script. I have tried creating a boot script, but this seems to
> require hard coded versions of the required apps, like kernel, sasl,
> etc. However we have various versions of debian in production with
> slightly different version of erlang, etc. installed. So I don't know
> the target environment.
>
> I could create a one line erlang program that does
> application:start(myapp), but this seems unnecessary.
>
> So, what is the standard method for starting a application from the
> command line.
>
> Thanks,
> Mark.
>
> --
> Principal Engineer
> Cheyenne Software Engineering
> mark.geib@REDACTED / 35-215
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>

In an artificial world, only extremists live naturally.

        -- Paul Graham



More information about the erlang-questions mailing list