I have developed an application which i have been running in the erlang shell by following this order.
$erl -name [email protected] -mnesia dir '"/home/app/logic/database"' -setcookie cookie
[email protected]> cd("/home/app/logic").
[email protected]> c(module1).
[email protected]> c(module2).
[email protected]> c(module3).
[email protected]> application:start(mnesia).
[email protected]>
Now my problem is that i want to run this application a daemon such that when i exit the erlang shell it continues running and communication with other nodes through rpc:call/4.
Kindly look at the erl command options, you should see something like -detached which would help you doing this. http://erlang.org/doc/man/erl.html