Spawn child processes that survive restarts and exit when the app exits.
var childProcess = new sanjo.LongRunningChildProcess('myChild');
var spawnOptions = {
command: <COMMAND>,
args: [],
pid: <PARENT_PID> //optional
};
childProcess.spawn(spawnOptions);
Also see spec and implementation for details.
MIT
The lib/LongRunningChildProcess.coffee
file has been originally written
by Ronen Babayoff and is also under MIT license.