Handle SIGTERM exit signals (allows clean exit with systemd)

This commit is contained in:
Alice Gaudon 2021-04-21 13:52:52 +02:00
parent dbf9347ec6
commit 12ec9b55f9
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ export default abstract class Application implements Extendable<ApplicationCompo
process.once('SIGINT', exitHandler);
process.once('SIGUSR1', exitHandler);
process.once('SIGUSR2', exitHandler);
process.once('SIGTERM', exitHandler);
process.once('uncaughtException', exitHandler);
// Register migrations