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

Function status

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

Source from the content-addressed store, hash-verified

644}
645
646function status() {
647 var pids = getRunningPids();
648 if (pids.length > 0) {
649 return { running: true, pids: pids.map(function(p) { return { pid: p, cmd: getCmdLine(p) }; }), log: path.relative(WORKSPACE_ROOT, LOG_FILE) };
650 }
651 return { running: false };
652}
653
654function tailLog(lines) {
655 if (!fs.existsSync(LOG_FILE)) return { error: 'No log file' };

Callers 1

lifecycle.jsFile · 0.85

Calls 2

getRunningPidsFunction · 0.85
getCmdLineFunction · 0.85

Tested by

no test coverage detected