Files
Profa f8658f9fd8 chore: update generated init artifacts and add v3 helper templates
- 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>
2026-02-13 15:27:01 +00:00

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 {}
}