2012-10-02 64 views
0

我正在用Reltool構建一個版本。當我嘗試啓動它與啓動文件我得到錯誤: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是一個庫,我不想啓動它。我如何從引導腳本中排除它?

回答

1

z_validate.app文件可能包含這樣一行:

{mod, {z_validate, []}} 

刪除,並且應用程序將被視爲一個純粹的庫應用程序。

1

reltool.config這樣定義的版本(注意load應用類型):

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

然後啓動了該版本(例如用./bin/erl)時,它會加載所有的應用程序,但不會嘗試啓動它們。