When I\'m testing my erlang application on localhost, I have a script that starts the server that looks like the following:
#!/bin/sh
PWD=\"$(pwd)\"
NAME=\"$(bas
Add the parameter -detached. The documentation summarizes this nicely:
Starts the Erlang runtime system detached from the system console. Useful for running daemons and backgrounds processes.
Once you do that, you can get your application to start with the -s parameter. Assuming $NAME = myapp, init will attempt to call myapp:start/0 (you can customize this if you want). That function should end with a call to application:start(myapp).
If you can get all of those puzzle pieces in place, you should have a working script.