MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / shutdown

Function shutdown

apps/cli/src/cli.ts:435–440  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

433 }
434
435 const shutdown = async () => {
436 console.log('\nShutting down...')
437 const { stopHttpServer } = await import('./http')
438 await stopHttpServer()
439 process.exit(0)
440 }
441
442 process.on('SIGINT', shutdown)
443 process.on('SIGTERM', shutdown)

Callers

nothing calls this directly

Calls 1

stopHttpServerFunction · 0.85

Tested by

no test coverage detected