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);