feat(sourcemaps-reader): support shutdown
feat(assist): support shutdown feat(peers): support shutdown
This commit is contained in:
parent
2a514da536
commit
5cf2947991
1 changed files with 9 additions and 1 deletions
|
|
@ -40,4 +40,12 @@ process.on('uncaughtException', err => {
|
|||
console.log(`Uncaught Exception: ${err.message}`);
|
||||
debug && console.log(err.stack);
|
||||
// process.exit(1);
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/private/shutdown', (req, res) => {
|
||||
console.log("Requested shutdown");
|
||||
res.statusCode = 200;
|
||||
res.end("ok!");
|
||||
process.kill(1, "SIGTERM");
|
||||
}
|
||||
);
|
||||
Loading…
Add table
Reference in a new issue