MCPcopy Create free account
hub / github.com/EvoMap/evolver / stop

Function stop

src/ops/lifecycle.js:617–630  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

615}
616
617function stop() {
618 var pids = getRunningPids();
619 if (pids.length === 0) {
620 console.log('[Lifecycle] No running evolver loops found.');
621 // Wrap in try/catch: on Windows a concurrently-open file raises EBUSY
622 // instead of succeeding silently as on Unix.
623 try { if (fs.existsSync(PID_FILE)) fs.unlinkSync(PID_FILE); } catch (_) {}
624 return { status: 'not_running' };
625 }
626 // Preserve the existing CLI stop semantics: stop every discoverable loop.
627 stopPids(pids, { unlinkPidFile: true, unlinkLock: true });
628 console.log('[Lifecycle] All stopped.');
629 return { status: 'stopped', killed: pids };
630}
631
632function stopOwnedLoops() {
633 var ownedPids = getOwnedLoopPids(getRunningPids());

Callers 2

lifecycle.jsFile · 0.70
oauthLogin.test.jsFile · 0.50

Calls 2

getRunningPidsFunction · 0.85
stopPidsFunction · 0.85

Tested by

no test coverage detected