all repos — website @ d00ba8dc1a7b7d46f9cc05272927dbcb81e09208

My website

Exit properly
Alan Pearce alan@alanpearce.eu
Sun, 24 Sep 2023 13:20:10 +0200
commit

d00ba8dc1a7b7d46f9cc05272927dbcb81e09208

parent

3fca211a5e26a594fab44b3d84437ebaecc0124a

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/index.tssrc/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);
 });