MCPcopy Create free account
hub / github.com/docker/getting-started / gracefulShutdown

Function gracefulShutdown

app/src/index.js:24–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22});
23
24const gracefulShutdown = () => {
25 db.teardown()
26 .catch(() => {})
27 .then(() => process.exit());
28};
29
30process.on('SIGINT', gracefulShutdown);
31process.on('SIGTERM', gracefulShutdown);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…