[erlang-questions] -detached works until I exit shell

37 views
Skip to first unread message

Wes James

unread,
Oct 31, 2012, 12:31:11 PM10/31/12
to erlang-q...@erlang.org
I have an erlang app I run with -detached and it works fine until I exit the shell I ran it from.  

I'm on xubuntu, and run

erl -name node@host -pa /my/ebin -s module -setcookie somecookie -detached

I first used startup scripts in xubuntu but I couldn't get to the node.

I then tried running emacs in daemon mode, run the app and then ctrl-x,ctrl-c to get out of emacs, but leave it running, but when I do that the app stops responding.

Anyone know why?

Thanks,

Wes

Wes James

unread,
Oct 31, 2012, 6:45:34 PM10/31/12
to erlang-q...@erlang.org
Forgot to mention this is with R15B02.

Wes James

unread,
Nov 9, 2012, 12:19:35 PM11/9/12
to erlang-q...@erlang.org
I toyed with the yaws startup script and now it works to start my app.  The key might be using the run_erl instead of using detached.

wes


On Wed, Oct 31, 2012 at 10:31 AM, Wes James <comp...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages