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

Function removeDaemonPointer

apps/cli/src/daemon-state.ts:283–291  ·  view source on GitHub ↗
(input: {
  hostname: string;
  scopeId: string;
})

Source from the content-addressed store, hash-verified

281 });
282
283export const removeDaemonPointer = (input: {
284 hostname: string;
285 scopeId: string;
286}): Effect.Effect<void, PlatformError, FileSystem.FileSystem | Path.Path> =>
287 Effect.gen(function* () {
288 const fs = yield* FileSystem.FileSystem;
289 const path = yield* Path.Path;
290 yield* fs.remove(daemonPointerPath(path, input), { force: true });
291 });
292
293const parseLockPid = (raw: string): number | null => {
294 let parsed: unknown;

Callers 5

cleanupPointerFunction · 0.90
stopDaemonFunction · 0.90
runDaemonSessionFunction · 0.90
main.tsFile · 0.90

Calls 2

daemonPointerPathFunction · 0.85
removeMethod · 0.65

Tested by

no test coverage detected