0
0
Fork 0

Update exit code listeners to accomodate for systemd

This commit is contained in:
Oliver-Akins 2021-01-09 16:29:05 -07:00
parent 30a67f653d
commit 8360070711

View file

@ -49,6 +49,7 @@ if (Validate.config(conf)) {
log.info(`Found ${hibernatedGames.length} hibernated games`); log.info(`Found ${hibernatedGames.length} hibernated games`);
process.on(`uncaughtException`, processExit); process.on(`uncaughtException`, processExit);
process.on(`SIGINT`, processExit); process.on(`SIGINT`, processExit);
process.on(`SIGTERM`, processExit);
}; };
startWebsocket(conf); startWebsocket(conf);