[erlang-questions] Starting an Erlang node in embedded mode
Andrew Haine
andrewp.haine@REDACTED
Mon Feb 5 10:48:32 CET 2018
Hi Xavier
I have done the following:
Creating a Release Package
=> systools:make_script("myapp_rel-1").
=> systools:make_tar("myapp_rel-1").
Creating a Target System
- Start Erlang/OTP from the directory where the mysystem.rel file resides:
(which is in the "releases" folder)
=> erl -pa /home/user/myapplication/myapp -1.0/ebin
- Create the target system:
=> target_system:create("myapp_rel-1").
Installing a Target System
=> target_system:install("myapp_rel-1", "/usr/local/myapplication/myapp").
Start Target System from OS:
=>/usr/local/myapplication/myapp/bin/start
It starts successfully and works as expected except for the fact that it
doesn't start on an actual named node, e.g myapp1@REDACTED, it
always starts on nonode@REDACTED
The intention for this app is to be started by the OS at boot time, perhaps
via /etc/init.d, and it needs to be on its own node.
On Mon, Feb 5, 2018 at 11:17 AM, Xavier Noria <fxn@REDACTED> wrote:
> Is that application part of a release, whose scripts are starting up the
> node in embedded mode?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180205/b4d4c251/attachment.htm>
More information about the erlang-questions
mailing list