refactor: reorganize service management commands in arty.yml

- Replace shell script calls with direct supervisorctl commands
- Organize services hierarchically: services/{service}/action
- Add all service control commands: start, stop, restart, status, logs
- Support both individual service control and all services control
- Remove obsolete script-based service management

New command structure:
- All services: arty services/{start,stop,restart,status}
- ComfyUI: arty services/comfyui/{start,stop,restart,status,logs}
- Orchestrator: arty services/orchestrator/{start,stop,restart,status,logs}
This commit is contained in:
2025-11-22 16:55:09 +01:00
parent 79b861e687
commit 5361bef85c

View File

@@ -605,16 +605,25 @@ scripts:
# #
# Service Management (Supervisor-based) # Service Management (Supervisor-based)
# #
services/start: bash /workspace/ai/scripts/start-all.sh # All services
services/stop: bash /workspace/ai/scripts/stop-all.sh services/start: supervisorctl -c /workspace/supervisord.conf start all
services/restart: bash /workspace/ai/scripts/stop-all.sh && bash /workspace/ai/scripts/start-all.sh services/stop: supervisorctl -c /workspace/supervisord.conf stop all
services/status: bash /workspace/ai/scripts/status.sh services/restart: supervisorctl -c /workspace/supervisord.conf restart all
services/logs: supervisorctl -c /workspace/supervisord.conf tail -f comfyui services/status: supervisorctl -c /workspace/supervisord.conf status
services/logs-orchestrator: supervisorctl -c /workspace/supervisord.conf tail -f orchestrator
services/restart-comfyui: supervisorctl -c /workspace/supervisord.conf restart comfyui # ComfyUI service
services/restart-orchestrator: supervisorctl -c /workspace/supervisord.conf restart orchestrator services/comfyui/start: supervisorctl -c /workspace/supervisord.conf start comfyui
services/start-orchestrator: supervisorctl -c /workspace/supervisord.conf start orchestrator services/comfyui/stop: supervisorctl -c /workspace/supervisord.conf stop comfyui
services/stop-orchestrator: supervisorctl -c /workspace/supervisord.conf stop orchestrator services/comfyui/restart: supervisorctl -c /workspace/supervisord.conf restart comfyui
services/comfyui/status: supervisorctl -c /workspace/supervisord.conf status comfyui
services/comfyui/logs: supervisorctl -c /workspace/supervisord.conf tail -f comfyui
# Orchestrator service
services/orchestrator/start: supervisorctl -c /workspace/supervisord.conf start orchestrator
services/orchestrator/stop: supervisorctl -c /workspace/supervisord.conf stop orchestrator
services/orchestrator/restart: supervisorctl -c /workspace/supervisord.conf restart orchestrator
services/orchestrator/status: supervisorctl -c /workspace/supervisord.conf status orchestrator
services/orchestrator/logs: supervisorctl -c /workspace/supervisord.conf tail -f orchestrator
# #
# Health Checks # Health Checks
@@ -696,20 +705,25 @@ notes: |
SERVICE MANAGEMENT SERVICE MANAGEMENT
======================================== ========================================
Start/Stop: All Services:
- arty run services/start # Start all services via Supervisor - arty services/start # Start all services
- arty run services/stop # Stop all services - arty services/stop # Stop all services
- arty run services/restart # Restart all services - arty services/restart # Restart all services
- arty run services/status # Check service status - arty services/status # Check all services status
Individual Services: ComfyUI Service:
- arty run services/restart-comfyui - arty services/comfyui/start # Start ComfyUI
- arty run services/start-orchestrator - arty services/comfyui/stop # Stop ComfyUI
- arty run services/stop-orchestrator - arty services/comfyui/restart # Restart ComfyUI
- arty services/comfyui/status # Check ComfyUI status
- arty services/comfyui/logs # Follow ComfyUI logs
Logs: Orchestrator Service:
- arty run services/logs # Follow ComfyUI logs - arty services/orchestrator/start # Start orchestrator
- arty run services/logs-orchestrator - arty services/orchestrator/stop # Stop orchestrator
- arty services/orchestrator/restart # Restart orchestrator
- arty services/orchestrator/status # Check orchestrator status
- arty services/orchestrator/logs # Follow orchestrator logs
======================================== ========================================
HEALTH & MONITORING HEALTH & MONITORING