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

Function stopOwnedLoops

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

Source from the content-addressed store, hash-verified

630}
631
632function stopOwnedLoops() {
633 var ownedPids = getOwnedLoopPids(getRunningPids());
634 if (ownedPids.length === 0) {
635 try { if (fs.existsSync(PID_FILE)) fs.unlinkSync(PID_FILE); } catch (_) {}
636 return { status: 'not_running' };
637 }
638 return stopPids(ownedPids, { unlinkPidFile: true, unlinkLock: true });
639}
640
641function restart(options) {
642 stopOwnedLoops();

Callers 1

restartFunction · 0.85

Calls 3

getOwnedLoopPidsFunction · 0.85
getRunningPidsFunction · 0.85
stopPidsFunction · 0.85

Tested by

no test coverage detected