feat: add Supervisor process manager for service management
- Add supervisord.conf with ComfyUI and orchestrator services - Update Ansible playbook with supervisor installation tag - Rewrite start-all.sh and stop-all.sh to use Supervisor - Add status.sh script for checking service status - Update arty.yml with supervisor commands and shortcuts - Update CLAUDE.md with Supervisor documentation and troubleshooting - Services now auto-restart on crashes with centralized logging Benefits: - Better process control than manual pkill/background jobs - Auto-restart on service crashes - Centralized log management in /workspace/logs/ - Web interface for monitoring (port 9001) - Works perfectly in RunPod containers (no systemd needed) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
10
arty.yml
10
arty.yml
@@ -127,10 +127,17 @@ scripts:
|
||||
ln -sf /workspace/huggingface_cache/models--stabilityai--stable-video-diffusion-img2vid-xt stable-video-diffusion-img2vid-xt
|
||||
echo "Models linked to ComfyUI"
|
||||
|
||||
# Service management
|
||||
# Service management (Supervisor-based)
|
||||
services/start: bash /workspace/ai/scripts/start-all.sh
|
||||
services/stop: bash /workspace/ai/scripts/stop-all.sh
|
||||
services/restart: bash /workspace/ai/scripts/stop-all.sh && bash /workspace/ai/scripts/start-all.sh
|
||||
services/status: bash /workspace/ai/scripts/status.sh
|
||||
services/logs: supervisorctl -c /workspace/supervisord.conf tail -f comfyui
|
||||
services/logs-orchestrator: supervisorctl -c /workspace/supervisord.conf tail -f orchestrator
|
||||
services/restart-comfyui: supervisorctl -c /workspace/supervisord.conf restart comfyui
|
||||
services/restart-orchestrator: supervisorctl -c /workspace/supervisord.conf restart orchestrator
|
||||
services/start-orchestrator: supervisorctl -c /workspace/supervisord.conf start orchestrator
|
||||
services/stop-orchestrator: supervisorctl -c /workspace/supervisord.conf stop orchestrator
|
||||
|
||||
# Dependency installation
|
||||
deps/comfyui-nodes: |
|
||||
@@ -141,6 +148,7 @@ scripts:
|
||||
|
||||
# Ansible provisioning shortcuts
|
||||
ansible/base: cd /workspace/ai && ansible-playbook playbook.yml --tags base,python,dependencies
|
||||
ansible/supervisor: cd /workspace/ai && ansible-playbook playbook.yml --tags supervisor
|
||||
ansible/vllm: cd /workspace/ai && ansible-playbook playbook.yml --tags models
|
||||
ansible/comfyui: cd /workspace/ai && ansible-playbook playbook.yml --tags comfyui,comfyui-essential
|
||||
ansible/comfyui-all: cd /workspace/ai && ansible-playbook playbook.yml --tags comfyui,comfyui-models-all,comfyui-nodes
|
||||
|
||||
Reference in New Issue
Block a user