Erlang Mailing Lists

Author Message

<  Erlang questions mailing list  ~  more inets.

icimjs at loop.com
Posted: Mon Feb 08, 1999 9:47 pm Reply with quote
Guest
Hi,

first off, thanx Mattias, I followed your suggestions and it worked.

I'm accessing my online webserver over telnet and I'd like to start the
erlang httpd server in the background and just let it run, without leaving
an interactive erlang shell dangling (which will be closed down when I
close down the telnet connection anyway - and with it the httpd server!).

Is there an easy (or not so easy) way to do that? How do I do that?

TIA,

Elan



Post generated using Mail2Forum (http://m2f.sourceforge.net)
tobbe at serc.rmit.edu.au
Posted: Mon Feb 08, 1999 11:14 pm Reply with quote
Guest
> I'm accessing my online webserver over telnet and I'd like to start the
> erlang httpd server in the background and just let it run, without leaving
> an interactive erlang shell dangling (which will be closed down when I

Use the -nouser switch to avoid the shell
(see also the man page: erl -man erl).

To have Erlang running as a daemon you can use the
following little C program:

http://www.serc.rmit.edu.au/~tobbe/epop/daemon_wrapper.c

Then, you can start your Erlang node as a daemon process:

./dw erl -noshell -s $(YOUR_PROGRAM)

NB: If you also add: -sname $(A_NODE_NAME)
you can attach yourself to that Erlang node by
starting a remote shell from another Erlang node.
(1. start another erlang node (use -sname $(ANOTHER_NAME)
2. Enter job control mode: C-g
3. Start a remote shell: r $(A_NODE_NAME)_at_$(THE_HOSTNAME)
4. Connect: c
)

/Tobbe


Post generated using Mail2Forum (http://m2f.sourceforge.net)

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum