MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / shutdown

Function shutdown

apps/cloud/scripts/dev-db.ts:146–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144let stopping = false;
145
146const shutdown = async () => {
147 stopping = true;
148 console.log("\n[dev-db] Shutting down");
149 await server.stop();
150 await db.close();
151 process.exit(0);
152};
153
154process.on("SIGINT", shutdown);
155process.on("SIGTERM", shutdown);

Callers

nothing calls this directly

Calls 2

logMethod · 0.80
closeMethod · 0.65

Tested by

no test coverage detected