I’ve searched now a bit for this in various places. Supposedly it should work with escript.
My rebar3 project, when I tell it to create a ‘release’, it seems to create some scripts that allow to start the application. In particular with specifying {extended_start_script, true} I get many options. But it’s not clear to me what I have to do to allow passing arbitrary parameters and make the application start as daemon, since it is a server application.
Any advice would be welcome.
Finally you must link the
the init.d script to the runlevel subdirectories
/etc/rc3.d
Best with
update-rc.d
Of course you may use system.d, but I don’t understand it.
If you rapplicateion is finally running you may connect to shell of the application, for example
to reload a module
l(module).
etc. with to_erl /tmp/erl_pipes/wf@x800/erlang.pipe.1
where x800 is the name of your machine.
As said above, that maybe a dirty hack, but for me it works.
Markus