Skip to content

hexsprite/meteor-shutdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

meteor/meteor#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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published