MCPcopy
hub / github.com/claude-code-best/claude-code / removeDaemonState

Function removeDaemonState

src/daemon/state.ts:56–63  ·  view source on GitHub ↗
(name = 'remote-control')

Source from the content-addressed store, hash-verified

54 * Remove the daemon state file.
55 */
56export function removeDaemonState(name = 'remote-control'): void {
57 const filePath = getDaemonStateFilePath(name)
58 try {
59 unlinkSync(filePath)
60 } catch {
61 // File may not exist — that's fine
62 }
63}
64
65/**
66 * Check if a process with the given PID is alive.

Callers 4

shutdownFunction · 0.85
queryDaemonStatusFunction · 0.85
stopDaemonByPidFunction · 0.85
state.test.tsFile · 0.85

Calls 2

unlinkSyncFunction · 0.90
getDaemonStateFilePathFunction · 0.85

Tested by

no test coverage detected