Exit properly
1 file changed, 2 insertions(+), 0 deletions(-)
jump to
M src/index.ts → src/index.ts
@@ -14,10 +14,12 @@ process.on("SIGTERM", function () { log.info("SIGTERM received, shutting down..."); metricsServed.stop(); served.stop(); + process.exit(0); }); process.on("SIGINT", function () { log.info("SIGINT received, shutting down..."); metricsServed.stop(); served.stop(); + process.exit(0); });