david.liu
david.liu

Reputation: 23

Can the application restart automaticly after it coredown?

Sometimes the erlang application will coredown by out of memery or other reasons. Can I config something to let it restart when it coredown?

Upvotes: 0

Views: 108

Answers (1)

Odobenus Rosmarus
Odobenus Rosmarus

Reputation: 5998

erlang support option --heart for monitoring if erlang process still alive. In case of crashing or hanging erlang process, heartbeat part reboots the whole server (it assumes your erlang application starts at booting of your server). You can read all details here:
http://www.erlang.org/doc/man/heart.html

Upvotes: 1

Related Questions