Make a child process independent
Closed this issue · 2 comments
It is my ambitions for this module, that it will spawn a router if non exist. The route process will then be independent of it's parent. This solves an issue where you have multiply sites running, and when you kill the first site-process the route-process will die.
First step in this would be to make an spawn().independent
method or option in the node core. The pull request was actually made a while ago for another propose, but do no longer merge clearly.
After talking with the coreteam I see that my .independent
implementation is wrong. It is also my hope to run the route cluster using forever
. So I will properly go around this another way and create a deamon
module in pure JavaScript, in order to help the forever
guys to sort out there problems. That deamon
module should also support to run a process in the background.
Done immortal solves this