sigterm-handler
Gracefully exit on Sigterm
Last updated 3 years ago by octoblu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install sigterm-handler 
SYNC missed versions from official npm registry.

sigterm-handler

Gracefully exit on SIGTERM or SIGINT

Build Status Test Coverage npm version Slack Status

Installation

npm install --save sigterm-handler

Usage

const sigtermHandler = require("sigterm-handler")

sigtermHandler(() => {
  // this will get called on SIGTERM or SIGINT
  // do cleanup here
  // if async, return promises
  return Promise.resolve()
})

Current Tags

  • 3.0.0                                ...           latest (3 years ago)

5 Versions

  • 3.0.0                                ...           3 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |