I spent a few hours writing a basic module to help deal with the new 0.6.x cluster tools to allow for some basic restarting and killing of processes - in particular http servers like express. It's fairly untested right now (basically just runs a single basic demo app I am developing it on) - but seems to deal with things reasonably - signal handling, process death, etc...
It uses forever internally to keep the cluster master process up and running and that also proxies signal handling through to the cluster (i.e. HUP on the top level app sends HUP to the cluster master, which gracefully restarts its workers). My goal is to create some basic init script templates that can be customized and put into service. It has an odd way of calling because I think forever doesn't want to daemonize existing processes, just wants to start new processes from a script name. Anyhow, if you're interested, I'd love to know what you think. https://github.com/ordrin/clusterman felix -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
