diff --git a/server/routerlicious/packages/services-shared/src/runner.ts b/server/routerlicious/packages/services-shared/src/runner.ts index 083b5e65f51..ecadc13e856 100644 --- a/server/routerlicious/packages/services-shared/src/runner.ts +++ b/server/routerlicious/packages/services-shared/src/runner.ts @@ -83,6 +83,16 @@ export async function run( }); }); + process.on("SIGINT", () => { + Lumberjack.info(`Received SIGINT request to stop the service.`); + }); + process.on("SIGQUIT", () => { + Lumberjack.info(`Received SIGQUIT request to stop the service.`); + }); + process.on("SIGHUP", () => { + Lumberjack.info(`Received SIGHUP request to stop the service.`); + }); + try { // Wait for the runner to complete await runningP;