[erlang-questions] starting a release with nohup

Matthew Evans mattevans123@REDACTED
Thu Jul 5 16:16:39 CEST 2012


I'm using it all the time.
Not sure if you are doing it, but I set the "-detached" and "-noshell" options to the Erlang "erl" command.
i.e:
nohup erl -detached -noshell

Matt

----------------------------------------
> Date: Wed, 4 Jul 2012 14:40:34 +0100
> From: ivan@REDACTED
> To: erlang-questions@REDACTED
> Subject: [erlang-questions] starting a release with nohup
>
> Dear All
>
> We have a web application which is a hybrid of python and erlang. As
> part of the deployment infrastructure we can restart the application
> over ssh, using a command like
>
> nohup webapp start
>
> "webapp start" just calls "pythonapp start" and "erlangapp start".
> Although nohup isn't necessary for the erlang app, it seems to be
> necessary for the python app.
>
> Recently we packaged the erlang app as a release, with start and stop
> functions. So, "erlangapp start" calls
> "/path/to/erlangapp/rel/eappnode/bin/eappnode start".
>
> The release set up is much nicer than before, *but* it doesn't seem to
> want to play with nohup. Running the above returns an erlang ebadf
> error message (see below).
>
> Is there a way to start a release using nohup?
>
> With thanks and best wishes
>
> Ivan
>
>
> ** error messages
>
> {error_logger,{{2012,7,4},{9,14,46}},supervisor_report,
>
> [{supervisor,{<0.21.0>,user_sup}},{errorContext,child_terminated},{reason,ebadf},{offender,[{pid,<0.22.0>},{mod,user_sup}]}]}
>
> {error_logger,{{2012,7,4},{9,14,46}},
> "** Generic server ~p terminating \n
> ** Last message in was ~p~n
> ** When Server state == ~p~n
> ** Reason for termination == ~n
> ** ~p~n",
> [<0.21.0>,
> {'EXIT',<0.22.0>,ebadf},
> {state,user_sup,undefined,<0.22.0>,{<0.21.0>,user_sup}},
> ebadf]}
>
> {error_logger,{{2012,7,4},{9,14,46}},crash_report,
>
> [[{initial_call,{supervisor_bridge,user_sup,['Argument__1']}},{pid,<0.21.0>},{registered_name,[]},{error_info,{exit,ebadf,[{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[kernel_sup,<0.9.0>]},{messages,[]},{links,[<0.10.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,987},{stack_size,24},{reductions,206}],[]]}
>
> {error_logger,{{2012,7,4},{9,14,46}},supervisor_report,
>
> [{supervisor,{local,kernel_sup}},{errorContext,child_terminated},{reason,ebadf},{offender,[{pid,<0.21.0>},{name,user},{mfargs,{user_sup,start,[]}},{restart_type,temporary},{shutdown,2000},{child_type,supervisor}]}]}
>
>
> --
> ============================================================
> Ivan A. Uemlianin PhD
> Llaisdy
> Speech Technology Research and Development
>
> ivan@REDACTED
> www.llaisdy.com
> llaisdy.wordpress.com
> github.com/llaisdy
> www.linkedin.com/in/ivanuemlianin
>
> "hilaritas excessum habere nequit"
> (Spinoza, Ethica, IV, XLII)
> ============================================================
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
 		 	   		  


More information about the erlang-questions mailing list