about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-09-24 13:20:10 +0200
committerAlan Pearce2023-09-24 13:20:10 +0200
commitd00ba8dc1a7b7d46f9cc05272927dbcb81e09208 (patch)
treeb8347995c9b1fb3cf7dea641f23235a46a1dcbfe
parent3fca211a5e26a594fab44b3d84437ebaecc0124a (diff)
downloadwebsite-d00ba8dc1a7b7d46f9cc05272927dbcb81e09208.tar.lz
website-d00ba8dc1a7b7d46f9cc05272927dbcb81e09208.tar.zst
website-d00ba8dc1a7b7d46f9cc05272927dbcb81e09208.zip
Exit properly
-rw-r--r--src/index.ts2
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);
 });