mirror of
https://github.com/proffesor-for-testing/agentic-qe.git
synced 2026-09-19 08:45:47 +08:00
f8658f9fd8
- Update worker configs with current timestamps from aqe init --auto - Update worker registry version to 3.6.4 - Add claude-flow integration config - Add worker daemon start/stop scripts - Add v3 agents index, quality-criteria helpers, and SFDIPOT template - Update skills README Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
773 B
JavaScript
24 lines
773 B
JavaScript
#!/usr/bin/env node
|
|
// AQE v3 Worker Daemon Stop Script (cross-platform)
|
|
// Generated by aqe init
|
|
|
|
const { existsSync, readFileSync, unlinkSync } = require('fs');
|
|
const { join } = require('path');
|
|
|
|
const workersDir = join(__dirname);
|
|
const pidFile = join(workersDir, 'daemon.pid');
|
|
|
|
if (!existsSync(pidFile)) { console.log('No PID file found - daemon may not be running'); process.exit(0); }
|
|
|
|
const pid = parseInt(readFileSync(pidFile, 'utf-8').trim(), 10);
|
|
try {
|
|
process.kill(pid, 0); // Check if alive
|
|
console.log('Stopping daemon (PID: ' + pid + ')...');
|
|
process.kill(pid, 'SIGTERM');
|
|
try { unlinkSync(pidFile); } catch {}
|
|
console.log('Daemon stopped');
|
|
} catch {
|
|
console.log('Daemon not running (stale PID file)');
|
|
try { unlinkSync(pidFile); } catch {}
|
|
}
|