slowKill

Tries to kill a process nicely (via SIGTERM) and forcefully kills it if it didn't exit after a given timeout.

slowKill
Parameters
proc (Object) the node process to kill
wait (Number? = 500) time to wait before invoking kill(9) if process doesn't exit
Returns
Promise: a promise that resolves once the process exited