Gracefully handle SIGTERM

This commit is contained in:
Sky Young 2019-07-19 15:58:38 -06:00
parent 3a2f8d19de
commit 53511b021d

View File

@ -31,6 +31,13 @@ function main(parentServicesPath, additionalServices) {
node.cli.main(parentServicesPath, additionalServices);
}
// Gracefully Shut Down
process.on('SIGTERM', function () {
node.stop(function() {
process.exit(0)
})
})
});
}