supervising non-Erlang apps

Ulf Wiger <>
Mon Oct 23 10:51:12 CEST 2000

On Mon, 23 Oct 2000, Vlad Dumitrescu wrote:

>Hi all!
>Is it possible (out-of-the-box or with some effort) to use an Erlang
>supervising app to handle not only Erlang nodes and processes, but
>also legacy applications? (cannot recompile them in any way)
>thanks in advance

Yes, it's usually possible. If the legacy app uses stdio, you can
start it using open_port, and then let an Erlang process monitor the
port. This way, you will have basic supervision of the application,
and can restart it if it crashes.

Beyond that, it's very much a question of how you can interface with
the application for configuration and control.

Ulf Wiger                                    tfn: +46  8 719 81 95
Strategic Product & System Management        mob: +46 70 519 81 95
Ericsson Telecom AB,              Datacom Networks and IP Services
Varuvägen 9, Älvsjö,                    S-126 25 Stockholm, Sweden

More information about the erlang-questions mailing list