Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.
Shell agent-teamsai-agentai-automationanthropicautonomous-agentawsbusiness-operationsclaudeclaude-codeclaude-code-plugindevopsecommerceinbox-zeroklaviyomarketingmcpmorning-briefingpr-automationshopifyterminal
fix(ops-daemon): parse launchctl list output correctly for existing PID
auroracapitalf0ee7c69717a
diff --git a/claude-ops/scripts/ops-daemon.sh b/claude-ops/scripts/ops-daemon.shindex 181b020d..d10e9497 100755--- a/claude-ops/scripts/ops-daemon.sh+++ b/claude-ops/scripts/ops-daemon.sh@@ -778,13 +778,13 @@ _install_launchd_plist() {return 1fi- # Check if already running with a live PID — skip reinstall+ # Check if already running with a live PID — skip reinstall.+ # Parse `launchctl list` (no label): format is "PID\tExitStatus\tLabel".+ # The labeled form `launchctl list <label>` outputs '"PID" = 12345;' which+ # yields '=' as $2 — never the PID — so we avoid it entirely.local existing_pid- existing_pid=$(launchctl list "$label" 2>/dev/null | awk '/PID/{print $2}' || true)- if [[ -z "$existing_pid" ]]; then- # Also try parsing the list output (format: PID\tStatus\tLabel)- existing_pid=$(launchctl list 2>/dev/null | awk -v lbl="$label" '$3==lbl && $1!="-" {print $1}' || true)- fi+ existing_pid=$(launchctl list 2>/dev/null \+ | awk -v lbl="$label" '$3==lbl && $1!="-" {print $1; exit}' || true)if [[ -n "$existing_pid" ]] && kill -0 "$existing_pid" 2>/dev/null; thenlog "INSTALL(launchd): $label already running (pid=$existing_pid) — skipping"return 0