feat: configure supervisord to run from /workspace/ai

- Create logs directory with .gitkeep
- Update .gitignore to track logs dir but ignore log files
- Update supervisord.conf with paths relative to /workspace/ai
- Add supervisor control scripts to arty.yml (start/stop/status/restart)
- All paths now use ../ to reference parent /workspace directory
This commit is contained in:
2025-11-22 21:04:19 +01:00
parent cdc5176d9f
commit 2f818a403c
4 changed files with 27 additions and 8 deletions

3
.gitignore vendored
View File

@@ -42,7 +42,8 @@ env/
# Logs
*.log
logs/
logs/*
!logs/.gitkeep
*.out
# Supervisord runtime files

View File

@@ -103,6 +103,24 @@ envs:
# Deployment scripts for RunPod instances
scripts:
#
# Supervisor Control Scripts
#
services/supervisor/start: |
set -a
source .env
set +a
supervisord -c supervisord.conf
services/supervisor/stop: |
supervisorctl -c supervisord.conf shutdown
services/supervisor/status: |
supervisorctl -c supervisord.conf status
services/supervisor/restart: |
supervisorctl -c supervisord.conf restart all
#
# System Setup Scripts
#

0
logs/.gitkeep Normal file
View File

View File

@@ -24,8 +24,8 @@ port=0.0.0.0:9001
# ComfyUI Server
[program:comfyui]
command=bash ai/comfyui/start.sh
directory=ComfyUI
command=bash comfyui/start.sh
directory=../ComfyUI
autostart=true
autorestart=true
startretries=3
@@ -35,14 +35,14 @@ stdout_logfile_maxbytes=50MB
stdout_logfile_backups=10
stderr_logfile_maxbytes=50MB
stderr_logfile_backups=10
environment=HF_HOME="huggingface_cache",PYTORCH_CUDA_ALLOC_CONF="expandable_segments:True",TQDM_DISABLE="1"
environment=HF_HOME="../huggingface_cache",PYTORCH_CUDA_ALLOC_CONF="expandable_segments:True",TQDM_DISABLE="1"
priority=100
stopwaitsecs=30
# AI Model Orchestrator
[program:orchestrator]
command=python3 model-orchestrator/orchestrator_subprocess.py
directory=ai
directory=.
autostart=false
autorestart=true
startretries=3
@@ -52,14 +52,14 @@ stdout_logfile_maxbytes=50MB
stdout_logfile_backups=10
stderr_logfile_maxbytes=50MB
stderr_logfile_backups=10
environment=HF_HOME="huggingface_cache",HF_TOKEN="%(ENV_HF_TOKEN)s"
environment=HF_HOME="../huggingface_cache",HF_TOKEN="%(ENV_HF_TOKEN)s"
priority=200
stopwaitsecs=30
# ComfyUI WebDAV Sync Service
[program:webdav-sync]
command=python3 webdav_sync.py
directory=ai/webdav-sync
directory=webdav-sync
autostart=true
autorestart=true
startretries=3
@@ -69,7 +69,7 @@ stdout_logfile_maxbytes=50MB
stdout_logfile_backups=10
stderr_logfile_maxbytes=50MB
stderr_logfile_backups=10
environment=WEBDAV_URL="%(ENV_WEBDAV_URL)s",WEBDAV_USERNAME="%(ENV_WEBDAV_USERNAME)s",WEBDAV_PASSWORD="%(ENV_WEBDAV_PASSWORD)s",WEBDAV_REMOTE_PATH="%(ENV_WEBDAV_REMOTE_PATH)s",COMFYUI_OUTPUT_DIR="ComfyUI/output"
environment=WEBDAV_URL="%(ENV_WEBDAV_URL)s",WEBDAV_USERNAME="%(ENV_WEBDAV_USERNAME)s",WEBDAV_PASSWORD="%(ENV_WEBDAV_PASSWORD)s",WEBDAV_REMOTE_PATH="%(ENV_WEBDAV_REMOTE_PATH)s",COMFYUI_OUTPUT_DIR="../ComfyUI/output"
priority=150
stopwaitsecs=10