Is there a way to stop Erlang servers from automatically starting epmd?

限于喜欢 提交于 2019-11-27 07:06:16

问题


Erlang servers will automatically spawn epmd (the Erlang port mapper daemon) if it isn't already running. I would prefer to manage epmd using systemd as a separate service. This is so that if I have multiple Erlang servers running on one host (e.g. RabbitMQ and ejabberd), epmd won't dissapear if the server that automatically spawned epmd gets shut down. systemd will clean up any stray processes when a service gets shut down so an automatically spawned epmd won't survive.

I can mostly handle this by making sure epmd is running as a separate service before starting any Erlang servers but I want to make extra sure that epmd is running only as a separate service.


回答1:


You can always just start epmd at boot time like any other daemon.

That said, epmd doesn't actually exit when you exit the erl instance that auto-started it. You have to manually kill it as far as I know.

At least on Linux and OS X, that seems to be true.



来源:https://stackoverflow.com/questions/17324786/is-there-a-way-to-stop-erlang-servers-from-automatically-starting-epmd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!