[erlang-questions] application:start() works but -s command line switch crashes
Bengt Kleberg
bengt.kleberg@REDACTED
Tue May 13 14:25:11 CEST 2014
Greetings,
"-s mod" is for mod:start/0, not the argument to application:start/1.
bengt
On Tue, 2014-05-13 at 14:16 +0200, Schneider wrote:
> Hi list,
>
>
>
> Starting my application from the command line with –s gives an error
>
>
>
> $ erl -sname rpi2 -pa ebin/ -pa deps/*/ebin/ -s othost
>
> Erlang/OTP 17 [erts-6.0] [source-07b8f44] [async-threads:10]
> [kernel-poll:false]
>
>
>
> {"init terminating in
> do_boot",{undef,[{othost,start,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
>
>
>
> Crash dump was written to: erl_crash.dump
>
> init terminating in do_boot ()
>
>
>
> Starting the application like this works fine:
>
>
>
> $ erl -sname rpi2 -pa ebin/ -pa deps/*/ebin/
>
> Erlang/OTP 17 [erts-6.0] [source-07b8f44] [async-threads:10]
> [kernel-poll:false]
>
>
>
> Eshell V6.0 (abort with ^G)
>
> (rpi2@REDACTED)1> application:start(othost).
>
>
>
> What is going wrong here?
>
>
>
> Thanks
>
> Frans
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list