diff options
author | Alan Pearce | 2023-09-24 13:20:10 +0200 |
---|---|---|
committer | Alan Pearce | 2023-09-24 13:20:10 +0200 |
commit | d00ba8dc1a7b7d46f9cc05272927dbcb81e09208 (patch) | |
tree | b8347995c9b1fb3cf7dea641f23235a46a1dcbfe | |
parent | 3fca211a5e26a594fab44b3d84437ebaecc0124a (diff) | |
download | website-d00ba8dc1a7b7d46f9cc05272927dbcb81e09208.tar.lz website-d00ba8dc1a7b7d46f9cc05272927dbcb81e09208.tar.zst website-d00ba8dc1a7b7d46f9cc05272927dbcb81e09208.zip |
Exit properly
-rw-r--r-- | src/index.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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); }); |