diff --git a/index.js b/index.js index cce3cf0..56067f3 100644 --- a/index.js +++ b/index.js @@ -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'); diff --git a/server/modules/singletons/TimerManager.js b/server/modules/singletons/TimerManager.js index a3098b0..076b638 100644 --- a/server/modules/singletons/TimerManager.js +++ b/server/modules/singletons/TimerManager.js @@ -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'));