Update exit code listeners to accomodate for systemd
This commit is contained in:
parent
30a67f653d
commit
8360070711
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue