From b85d216bf484d043cbbe801827f3eaf96b585b82 Mon Sep 17 00:00:00 2001 From: Haim Kastner Date: Sat, 11 Jul 2020 21:08:21 +0300 Subject: [PATCH] Allows backend exit by ctrl+c sign --- backend/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/index.ts b/backend/src/index.ts index 5881d5f5..a3c9f21f 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -64,6 +64,7 @@ process.on('exit', (code) => { }); process.on('SIGINT', () => { logger.warn(`[home-iot-server] About to exit SIGINT`); + process.exit(1); }); process.on('SIGTERM', () => { logger.warn(`[home-iot-server] About to exit SIGTERM`);