1.2.0 • Published 7 years ago
graceful-process v1.2.0
graceful-process
graceful exit process even parent exit on SIGKILL.
Install
npm i graceful-process --save
Usage
Require this module and execute it on every child process file.
// mycli.js
require('graceful-process')({ logger: console, label: 'mycli-child-cmd' });
Support
- cluster
- child_process.fork()
- child_process.spawn()