update issues of freeze
This commit is contained in:
24
restart_services.sh
Normal file
24
restart_services.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
# TestArena Service Restart Script
|
||||
# This script restarts all components of the TestArena system.
|
||||
# Usage: sudo ./restart_services.sh
|
||||
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo "❌ Please run as root (use sudo ./restart_services.sh)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "🔄 Restarting TestArena Services..."
|
||||
|
||||
echo "🌐 Restarting Nginx..."
|
||||
systemctl restart nginx
|
||||
|
||||
echo "📱 Restarting TestArena App..."
|
||||
systemctl restart testarena-app
|
||||
|
||||
echo "⚙️ Restarting TestArena Worker..."
|
||||
systemctl restart testarena-worker
|
||||
|
||||
echo "✅ All services restarted!"
|
||||
systemctl status testarena-app testarena-worker nginx --no-pager
|
||||
Reference in New Issue
Block a user