#!/bin/bash

# Trainings24x7 Platform - Stop Script
# =============================

echo "Stopping Trainings24x7 Platform Services..."

# Stop backend and frontend services
echo "🔧 Stopping backend and frontend services..."
sudo supervisorctl stop backend frontend

# Optionally stop MongoDB (uncomment if you want to stop MongoDB too)
# echo "📦 Stopping MongoDB..."
# sudo pkill mongod

echo "📊 Service Status:"
sudo supervisorctl status | grep -E "(backend|frontend)"

echo ""
echo "✅ Trainings24x7 Platform Stopped!"