MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / stopCommand

Function stopCommand

src/mcp/daemon-registry.ts:359–362  ·  view source on GitHub ↗

The OS command that stops process `pid`, for advice text.

(pid: number, force = false)

Source from the content-addressed store, hash-verified

357
358/** The OS command that stops process `pid`, for advice text. */
359function stopCommand(pid: number, force = false): string {
360 if (process.platform === 'win32') return `taskkill /PID ${pid} /F`;
361 return force ? `kill -9 ${pid}` : `kill ${pid}`;
362}
363
364/**
365 * What `codegraph index` reports when {@link stopDaemonAt} left the project's

Callers 1

daemonStopFailureMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected