Skip to content

Commit

Permalink
Merge pull request #29 from LN-Zap/docker-stop
Browse files Browse the repository at this point in the history
Exit process on receipt of OS SIGINT signal
  • Loading branch information
mrfelton authored Feb 11, 2024
2 parents 9f79bbb + a44549e commit 88f454c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -417,3 +417,8 @@ export default {
port,
fetch: app.fetch,
}

process.on('SIGINT', function() {
console.info("Caught interrupt signal. Exiting.");
process.exit();
});

0 comments on commit 88f454c

Please sign in to comment.