From d00ba8dc1a7b7d46f9cc05272927dbcb81e09208 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 24 Sep 2023 13:20:10 +0200 Subject: Exit properly --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index bb492d0..f0db416 100644 --- a/src/index.ts +++ b/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); }); -- cgit 1.4.1