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

Function shutdown

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

Source from the content-addressed store, hash-verified

123console.log(`[dev-db] Listening on postgresql://postgres:postgres@127.0.0.1:${PORT}/postgres`);
124
125const shutdown = async () => {
126 console.log("\n[dev-db] Shutting down");
127 await server.stop();
128 await db.close();
129 process.exit(0);
130};
131
132process.on("SIGINT", shutdown);
133process.on("SIGTERM", shutdown);

Callers

nothing calls this directly

Calls 2

logMethod · 0.80
closeMethod · 0.65

Tested by

no test coverage detected