diff --git a/server/index.js b/server/index.js index 208a61b..b2618e0 100644 --- a/server/index.js +++ b/server/index.js @@ -1,3 +1,16 @@ +var process = require('process') +// Handle SIGINT +process.on('SIGINT', () => { + console.info("SIGINT Received, exiting...") + process.exit(0) +}) + +// Handle SIGTERM +process.on('SIGTERM', () => { + console.info("SIGTERM Received, exiting...") + process.exit(0) +}) + const parser = require('ua-parser-js'); const { uniqueNamesGenerator, animals, colors } = require('unique-names-generator');