I would like to launch my Escript as a daemon, for using it on a productions server for example.
My thought was to add a --daemon options that will launch it as a daemon: eg ./tasky listen --daemon .
My Escript is using a Cowboy local server and AMQP as a dependency but it shouldn’t be a problem.
So when I have the option --daemon i will launch a Porcelain.spawn("./tasky", []]). This line works but a few seconds later i have a ** (EXIT from #PID<0.145.0>) shutdown . Am I proceeding the good way ? Do you have another idea ?