如何自动启动所需的服务和应用程序? [英] How to automatically launch needed services and apps?

查看:118
本文介绍了如何自动启动所需的服务和应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写我的第一个erlang应用程序,我想在erlang生态系统中做这些事情。我的应用程序依赖于ssl,inets服务和log4erl应用程序已经开始,现在我在erlang shell中手动启动它。之后,我启动我的应用程序的主管开始其他部分。问题是我应该如何组织事情,以免手动启动ssl,inets和log4erl?

解决方案

你应该尝试Erlang释放处理系统。



检查文档 here


I am writing my first erlang application and I want to do things the way they should be done in the erlang ecosystem. My app depends on ssl, inets services and log4erl application to be already started and as for now I start them manually in the erlang shell. After that I start my app's supervisor that starts other parts. The question is how should I organize things so that there would be no need to start ssl, inets and log4erl manually ?

解决方案

You should try Erlang release handling system.

Check docs here.

这篇关于如何自动启动所需的服务和应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆