Files
nanoclaw/stop.sh
woozu-shin ef1aff1532
Some checks failed
Bump version / bump-version (push) Has been cancelled
Sync upstream & merge-forward skill branches / sync-and-merge (push) Has been cancelled
Merge-forward skill branches / merge-forward (push) Has been cancelled
Update token count / update-tokens (push) Has been cancelled
Add MiniMax API support, Apple Container runtime, and stop script
- Add ASSISTANT_NAME and claude-minimax.sh for MiniMax API usage
- Switch container runtime from Docker to Apple Container
- Add CJK character restriction notice to CLAUDE.md files
- Add stop.sh for graceful shutdown

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-28 14:31:55 +09:00

20 lines
506 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
# Stop launchd service (if loaded)
if launchctl list | grep -q "com.nanoclaw"; then
echo "Stopping via launchctl..."
launchctl unload ~/Library/LaunchAgents/com.nanoclaw.plist 2>/dev/null || true
fi
# Kill direct node process running nanoclaw
PIDS=$(pgrep -f "node.*dist/index.js" 2>/dev/null || true)
if [ -n "$PIDS" ]; then
echo "Killing node processes: $PIDS"
echo "$PIDS" | xargs kill 2>/dev/null || true
fi
echo "Stopped."