MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / isDaemonRunning

Function isDaemonRunning

src/daemon/utils.ts:96–107  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

94}
95
96export function isDaemonRunning(sessionId: string): boolean {
97 const pid = getDaemonPid(sessionId);
98 if (pid) {
99 try {
100 process.kill(pid, 0); // Throws if process doesn't exist
101 return true;
102 } catch {
103 // Process is dead, stale PID file. Proceed with startup.
104 }
105 }
106 return false;
107}
108
109export function serializeArgs(
110 options: Record<string, YargsOptions>,

Callers 5

daemon.tsFile · 0.85
startDaemonFunction · 0.85
stopDaemonFunction · 0.85
chrome-devtools.tsFile · 0.85
client.test.tsFile · 0.85

Calls 1

getDaemonPidFunction · 0.85

Tested by

no test coverage detected