From 2f818a403ce6a43db17d773218f9144ff3c17d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sat, 22 Nov 2025 21:04:19 +0100 Subject: [PATCH] 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 --- .gitignore | 3 ++- arty.yml | 18 ++++++++++++++++++ logs/.gitkeep | 0 supervisord.conf | 14 +++++++------- 4 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 logs/.gitkeep diff --git a/.gitignore b/.gitignore index 77f7534..d524fe2 100644 --- a/.gitignore +++ b/.gitignore @@ -42,7 +42,8 @@ env/ # Logs *.log -logs/ +logs/* +!logs/.gitkeep *.out # Supervisord runtime files diff --git a/arty.yml b/arty.yml index 303d9ea..3b78ee4 100644 --- a/arty.yml +++ b/arty.yml @@ -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 # diff --git a/logs/.gitkeep b/logs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/supervisord.conf b/supervisord.conf index cf48593..222cc16 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -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