Gracefully handle SIGTERM
This commit is contained in:
parent
3a2f8d19de
commit
53511b021d
@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user