remove sigterm handler

This commit is contained in:
AlecM33
2023-01-17 21:30:21 -05:00
parent e39cc61b4e
commit 36c48affc9
2 changed files with 0 additions and 18 deletions

View File

@@ -32,18 +32,6 @@
singletons.eventManager.timerManager = timerManager.instance;
singletons.eventManager.gameManager = GameManager.instance;
//singletons.timerManager.setUpSignalHandler();
process.on( "SIGINT", function() {
console.log( "\ngracefully shutting down from SIGINT (Crtl-C)" );
process.exit();
} );
process.on( "exit", function() {
console.log( "never see this log message" );
} );
//process.kill(process.pid, "SIGTERM");
try {
await singletons.eventManager.client.connect();
logger.info('Root Redis client connected');

View File

@@ -15,12 +15,6 @@ class TimerManager {
TimerManager.instance = this;
}
setUpSignalHandler = () => {
process.on('SIGTERM', (code) => {
console.log('received sigterm');
});
}
runTimer = async (game, namespace, eventManager, gameManager) => {
this.logger.debug('running timer for game ' + game.accessCode);
const gameProcess = fork(path.join(__dirname, '../GameProcess.js'));