【问题标题】:Reltool try to start libraryReltool 尝试启动库
【发布时间】:2012-09-23 05:49:03
【问题描述】:

我正在使用 Reltool 构建一个版本。当我尝试使用启动文件启动它时出现错误:


14:40:49.466 [error] CRASH REPORT Process  with 0 neighbours crashed with reason: {bad_return,{{z_validate,start,[normal,[]]},{'EXIT',{undef,[{z_validate,start,[normal,[]],[]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,274}]}]}}}}
14:40:49.472 [info] Application z_validate exited with reason: {bad_return,{{z_validate,start,[normal,[]]},{'EXIT',{undef,[{z_validate,start,[normal,[]],[]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,274}]}]}}}}

但是 z_validate 是一个库,我不想启动它。如何从启动脚本中排除它?

【问题讨论】:

    标签: erlang reltool


    【解决方案1】:

    您的z_validate.app 文件可能包含这样的一行:

    {mod, {z_validate, []}}
    

    删除它,应用程序将被视为纯库应用程序。

    【讨论】:

      【解决方案2】:

      reltool.config 中定义这样的版本(注意load 应用类型):

      {rel, "cmd", "0.1",
       [{kernel, load},
        {stdlib, load},
        {your_app, load}
       ]},
      

      然后在启动该版本时(例如使用./bin/erl),它将加载所有应用程序但不会尝试启动它们。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2016-06-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-11-27
        相关资源
        最近更新 更多