refactor: update scripts for kebab-case service binary names

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-03-04 22:08:31 +01:00
parent e047c1eea3
commit d3ed2e2540
5 changed files with 30 additions and 30 deletions

View File

@@ -15,32 +15,32 @@ echo "Shutting down: 3 Services + Docker Databases"
# Step 1: Stop services by PID files if they exist
echo -e "${BLUE}🔌 Stopping standalone services...${NC}"
if [ -f .trading_service.pid ]; then
TRADING_PID=$(cat .trading_service.pid)
if [ -f .trading-service.pid ]; then
TRADING_PID=$(cat .trading-service.pid)
echo "📈 Stopping Trading Service (PID: $TRADING_PID)"
kill $TRADING_PID 2>/dev/null || true
rm -f .trading_service.pid
rm -f .trading-service.pid
fi
if [ -f .backtesting_service.pid ]; then
BACKTEST_PID=$(cat .backtesting_service.pid)
if [ -f .backtesting-service.pid ]; then
BACKTEST_PID=$(cat .backtesting-service.pid)
echo "🔄 Stopping Backtesting Service (PID: $BACKTEST_PID)"
kill $BACKTEST_PID 2>/dev/null || true
rm -f .backtesting_service.pid
rm -f .backtesting-service.pid
fi
if [ -f .ml_training_service.pid ]; then
ML_PID=$(cat .ml_training_service.pid)
if [ -f .ml-training-service.pid ]; then
ML_PID=$(cat .ml-training-service.pid)
echo "🧠 Stopping ML Training Service (PID: $ML_PID)"
kill $ML_PID 2>/dev/null || true
rm -f .ml_training_service.pid
rm -f .ml-training-service.pid
fi
# Step 2: Fallback - kill by process name
echo -e "${YELLOW}🧹 Cleaning up any remaining service processes...${NC}"
pkill -f "trading_service" || true
pkill -f "backtesting_service" || true
pkill -f "ml_training_service" || true
pkill -f "trading-service" || true
pkill -f "backtesting-service" || true
pkill -f "ml-training-service" || true
# Give processes time to shut down gracefully
sleep 2