OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-wallet / scripts / pear-stop.sh

31 lines · bash ref:
#!/bin/bash
# Pear Stop Script
# Stops the pear-dev testing environment

SESSION="pear-dev"

echo "⏹️  Stopping Pear Testing Environment"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""

# Check if session exists
if ! tmux has-session -t $SESSION 2>/dev/null; then
    echo "✅ No active pear-dev session found"
    exit 0
fi

echo "🛑 Stopping web server in hw-web window..."
tmux send-keys -t $SESSION:hw-web C-c 2>/dev/null || true
sleep 1

echo "🗑️  Killing pear-dev session..."
tmux kill-session -t $SESSION

echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "✅ Testing environment stopped!"
echo ""
echo "📊 Seeder still running in tmux session 'pear-seed'"
echo "   Check with: tmux attach -t pear-seed"
echo ""