From 8360070711e031e299e4d8d504f0b1c9601885f7 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 9 Jan 2021 16:29:05 -0700 Subject: [PATCH] Update exit code listeners to accomodate for systemd --- server/src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main.ts b/server/src/main.ts index cb5cdc2..533cdb2 100644 --- a/server/src/main.ts +++ b/server/src/main.ts @@ -49,6 +49,7 @@ if (Validate.config(conf)) { log.info(`Found ${hibernatedGames.length} hibernated games`); process.on(`uncaughtException`, processExit); process.on(`SIGINT`, processExit); + process.on(`SIGTERM`, processExit); }; startWebsocket(conf);