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(); +});