Erlang Mailing Lists

Author Message

<  Erlyweb mailing list  ~  Weird yaws behavious

Guest
Posted: Wed May 07, 2008 5:26 pm Reply with quote
Guest
Well I "fixed" it by adding the following switches to yaws:

--heart --daemon --runmod booter

The heart of this [no pun intended] is the runmod switch. There is a
file booter.erl in the directory with a function start/0. When yaws is
starting up, it inspects the --runmod switch and runs the start/0
function inside of the booter.erl file. The start/0 function is the
famous boot/0 function in start.erl, renamed to conform with yaws
requirements.
Thus when the server is started, there is a heart process that keeps
it up and because of the --runmod switch, the application is always
available as long as the server is available.

Nii Amon

On Apr 8, 4:07

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