refactor: update scripts for kebab-case service binary names
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user