From 83cb2f82f5d703fd0e0db4fa809edbaa8fd3cb23 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Thu, 13 Jun 2024 16:08:56 -0500 Subject: [PATCH] add SIGHUP and SIGTERM to cli shutdown --- apps/cli/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/cli/main.js b/apps/cli/main.js index 83257bfe5..73f5260ba 100644 --- a/apps/cli/main.js +++ b/apps/cli/main.js @@ -15,6 +15,6 @@ async function startOntime() { startOntime(); -process.on('SIGINT',()=>{ - shutdown() -}) +process.on(['SIGHUP', 'SIGINT', 'SIGTERM'], () => { + shutdown(); +});