https://github.com/hexsprite/meteor-shutdown
https://github.com/hexsprite/meteor-shutdown
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hexsprite/meteor-shutdown
- Owner: hexsprite
- Created: 2020-05-12T02:12:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T02:15:57.000Z (about 6 years ago)
- Last Synced: 2025-01-29T10:18:05.393Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Register a shutdown callback that is called properly in development and production.
Thanks to some hackery from this issue I threw this into a package which is only a temporary fix.
https://github.com/meteor/meteor/issues/2167
Usage:
```
import { onShutdown } from 'meteor/hexsprite:shutdown'
onShutdown(callback)
```
In production mode this will be registered using SIGTERM and in development mode this hooks into Meteor's existing exit callback.
Install:
`meteor add hexsprite:shutdown`