diff --git a/src/index.ts b/src/index.ts index 294c284..b2c9d26 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,3 +15,9 @@ boot(); process.on("uncaughtException", function (err) { console.log(`Caught exception: ${err.message} ${err.stack}`); }); +process.on("SIGINT", function () { + process.exit(); +}); +process.on("SIGTERM", function () { + process.exit(); +});