aboutsummaryrefslogtreecommitdiffhomepage
path: root/apps
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-08-28 16:52:08 +0200
committerChocobozzz <me@florianbigard.com>2023-08-28 16:52:08 +0200
commit6a85ec04806aa11ad242e09a4a810e2451200932 (patch)
tree91fd3e024239c53c566a9c8a77d71cdbf3f15297 /apps
parente23b95a901819fecc69b47ac83b3b3ce1b0037e3 (diff)
downloadPeerTube-6a85ec04806aa11ad242e09a4a810e2451200932.tar.gz
PeerTube-6a85ec04806aa11ad242e09a4a810e2451200932.tar.zst
PeerTube-6a85ec04806aa11ad242e09a4a810e2451200932.zip
Also handle SIGTERM to cleanup jobs
Diffstat (limited to 'apps')
-rw-r--r--apps/peertube-runner/src/server/server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/peertube-runner/src/server/server.ts b/apps/peertube-runner/src/server/server.ts
index 825e3f297..72e0d5ee5 100644
--- a/apps/peertube-runner/src/server/server.ts
+++ b/apps/peertube-runner/src/server/server.ts
@@ -54,7 +54,7 @@ export class RunnerServer {
54 } 54 }
55 55
56 // Cleanup on exit 56 // Cleanup on exit
57 for (const code of [ 'SIGINT', 'SIGUSR1', 'SIGUSR2', 'uncaughtException' ]) { 57 for (const code of [ 'SIGTERM', 'SIGINT', 'SIGUSR1', 'SIGUSR2', 'uncaughtException' ]) {
58 process.on(code, async (err, origin) => { 58 process.on(code, async (err, origin) => {
59 if (code === 'uncaughtException') { 59 if (code === 'uncaughtException') {
60 logger.error({ err, origin }, 'uncaughtException') 60 logger.error({ err, origin }, 'uncaughtException')