script for erlang server
pablo platt
pablo.platt at gmail.com
Thu Nov 19 20:47:39 GMT 2009
Hi,
I want to use upstart for an erlang web server - mochiweb.
I havn't found an example for using upstart with erlang.
I can start mochiweb with exec erl...
but I don't understand how to properly stop the server.
I think upstart kills the process if you give it stop on shutdown
but the server needs to do some stuff before it shuts down.
I can use pre-stop script to call the server with exec and tell it to
prepare to stop but then why not just stopping it in this script?
An erlang app can kill itself so why not use it instead?
I also not sure how to do status and reload.
The erlang server or nginx for example needs to tell you about its status
and knows how to reload
how can the upstart script knows what to do?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/upstart-devel/attachments/20091119/d1b90e58/attachment.htm
More information about the upstart-devel
mailing list