diff options
-rw-r--r-- | apps/peertube-runner/src/server/server.ts | 2 |
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') |