[erlang-questions] managing OS processes

Serge Aleynikov serge@REDACTED
Wed May 30 17:48:53 CEST 2012

Take a look at erlexec:


I believe it does exactly what you need.

On 5/26/2012 5:06 AM, Benoit Chesneau wrote:
> I'm trying to find a way to manage some os processes launched from
> Erlang. For example I need to relaunch them when the external process
> die for an unknown reason or send an HUP signal or just stop the
> external process.
> For now I'm using erlang ports to open an external process and detect
> when it die. I also send signals using the `os:cmd` and and always
> send a SIGKILL signal using the `os:cmd`before closing the port. But
> is there a better way to do that? Maybe a module somewhere ? I saw
> erlexec [1] but it doesn't seem to be maintained since a while.
> - benoît
> [1] http://code.google.com/p/erlexec/
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list