graceful exit process even parent exit on SIGKILL.
Clone or download
Latest commit fcc6c87 Mar 2, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test feat: add beforeExit options (#4) Mar 2, 2018
.autod.conf.js first commit Jun 12, 2017
.eslintignore first commit Jun 12, 2017
.eslintrc
.gitignore first commit Jun 12, 2017
.travis.yml feat: add logLevel to control print log level (#3) Jan 17, 2018
History.md Release 1.2.0 Mar 2, 2018
README.md chore: fix badge url Jun 12, 2017
appveyor.yml feat: add logLevel to control print log level (#3) Jan 17, 2018
exit.js feat: add beforeExit options (#4) Mar 2, 2018
index.js
package.json

README.md

graceful-process

graceful exit process even parent exit on SIGKILL.

NPM version build status Test coverage David deps Known Vulnerabilities NPM download

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()