stern-parent
Use to launch a module in another process. The other process will be forcibly killed once the timer expires, even if the script is unresponsive or hijacking SIGTERM.
Example
var sternParent = ;var path = ;var modulePath = path; // launch obedientChild in another process// give it 2000 ms to live// pass arguments, available through process.argvsternParent;
If needed, you can cancel or reset the countdown from within the child module.
// obedientChild.js // restart the countdownprocess; // restart at a different pointprocess; // cancel countdown altogetherprocess;
TODO
- set option to toggle logging