I'm using express with domain.js middle ware.
I need to be able to shut down the node instance from a request. This is not a public facing instance so security is not really an issue. I am using express to process http request, one of which is a "kill" request. This request should shut down node completely as quickly as possible.
I've tried the following server.close(), but that doesn't seem to do anything.
I would rather shut it down as gracefully as possible, but if I need to kill it I am willing to do that. I don't know how.