mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
remove sigterm handler
This commit is contained in:
12
index.js
12
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');
|
||||
|
||||
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user