Skip to content

Commit

Permalink
Allows backend exit by ctrl+c sign
Browse files Browse the repository at this point in the history
  • Loading branch information
haimkastner committed Jul 11, 2020
1 parent 6a9106d commit b85d216
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down

0 comments on commit b85d216

Please sign in to comment.