Added a restart for hosting that kills user processes#14
Added a restart for hosting that kills user processes#14Sustenance wants to merge 3 commits intoniutech:masterfrom
Conversation
|
Actually, don't merge this yet. I need to add a check that the node PID is still alive - just realized that it wasn't actively checking that on each serve |
|
Thank you for your contribution. Could you please add spaces around |
|
I can make the requested changes. I called node_serve recursively so that it would redo the check for the PID. |
|
No, I haven't experienced it. Does `$!` also return nothing?
|
|
Sorry I let this PR die. The host I was using (NameCheap) has an autokiller on its shared hosting apparently, and kills node as soon as it starts. Doesn't look like I'll be able to continue contributing. |
Some shared hosting, such as Namecheap, will periodically kill off users' processes. This should allow the process to be restarted when a request comes in while the process is dead.