diff --git a/src/main.ts b/src/main.ts index ff7d2318..c2246448 100644 --- a/src/main.ts +++ b/src/main.ts @@ -29,6 +29,13 @@ process.on('unhandledRejection', (reason, promise) => { // @ts-ignore logger.error(reason.stack); }); +process.on('SIGINT', () => { + logger.info('SIGINT received'); +}); + +process.on('SIGTERM', () => { + logger.info('SIGTERM received'); +}); async function loadModules(): Promise< [typeof AppModuleCore, typeof SwaggerConfiguratorCore]