Skip to content

Commit

Permalink
update kill process
Browse files Browse the repository at this point in the history
  • Loading branch information
sasagar committed Aug 17, 2023
1 parent 0871782 commit b0fef17
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "misskey",
"version": "13.14.2-ikaskey-e6",
"version": "13.14.2-ikaskey-f",
"codename": "nasubi",
"repository": {
"type": "git",
Expand Down
9 changes: 6 additions & 3 deletions packages/backend/src/boot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,13 @@ process.on("uncaughtException", (err) => {
});

// Dying away...
process.on("exit", (code) => {
logger.info(`The process is going to exit with code ${code}`);
// process.on("exit", (code) => {
// logger.info(`The process is going to exit with code ${code}`);
// });
process.on("SIGTERM", (signal: string, value: number) => {
logger.info(`SEGTERM ${signal} ${value}`);
process.exit(value);
});

//#endregion

if (cluster.isPrimary || envOption.disableClustering) {
Expand Down

0 comments on commit b0fef17

Please sign in to comment.