Skip to content

Commit

Permalink
change signal handler
Browse files Browse the repository at this point in the history
  • Loading branch information
eladb committed May 13, 2024
1 parent 1138fb4 commit 8e0b56c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions containers/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions containers/test/microservices_consumer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (!PRODUCER_URL) {
process.exit(1);
}

process.on('SIGINT', () => {
process.on('SIGTERM', () => {
console.info("Interrupted")
process.exit(0)
});
Expand All @@ -30,4 +30,4 @@ const server = http.createServer((req, res) => {
});

console.log('listening on port 3000');
server.listen(3000);
server.listen(3000);
5 changes: 3 additions & 2 deletions containers/test/microservices_producer/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node
const http = require('http');

process.on('SIGINT', () => {
process.on('SIGTERM', () => {
console.info("Interrupted")
process.exit(0)
});
Expand All @@ -13,4 +13,5 @@ const server = http.createServer((req, res) => {
});

console.log('listening on port 4000');
server.listen(4000);
server.listen(4000);

2 changes: 1 addition & 1 deletion containers/test/my_app/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node
const http = require('http');

process.on('SIGINT', () => {
process.on('SIGTERM', () => {
console.info("Interrupted")
process.exit(0)
});
Expand Down

0 comments on commit 8e0b56c

Please sign in to comment.