diff --git a/build/COPY_ROOT/etc/supervisor/supervisord/conf.d/comfyui.conf b/build/COPY_ROOT/etc/supervisor/supervisord/conf.d/comfyui.conf index 7a790276..010adb8e 100644 --- a/build/COPY_ROOT/etc/supervisor/supervisord/conf.d/comfyui.conf +++ b/build/COPY_ROOT/etc/supervisor/supervisord/conf.d/comfyui.conf @@ -3,7 +3,7 @@ command=/opt/ai-dock/bin/supervisor-comfyui.sh process_name=%(program_name)s numprocs=1 directory=/opt/ComfyUI -priority=1500 +priority=100 autostart=true startsecs=5 startretries=3 diff --git a/build/COPY_ROOT/etc/supervisor/supervisord/conf.d/comfyui_rp_api.conf b/build/COPY_ROOT/etc/supervisor/supervisord/conf.d/comfyui_rp_api.conf index 44cd1603..e5ee01bc 100644 --- a/build/COPY_ROOT/etc/supervisor/supervisord/conf.d/comfyui_rp_api.conf +++ b/build/COPY_ROOT/etc/supervisor/supervisord/conf.d/comfyui_rp_api.conf @@ -3,7 +3,7 @@ command=/opt/ai-dock/bin/supervisor-comfyui-rp-api.sh process_name=%(program_name)s numprocs=1 directory=/opt/serverless/providers/runpod -priority=1500 +priority=100 autostart=true startsecs=5 startretries=3 diff --git a/build/COPY_ROOT/opt/ai-dock/bin/supervisor-comfyui.sh b/build/COPY_ROOT/opt/ai-dock/bin/supervisor-comfyui.sh index c92d804c..19dd982f 100755 --- a/build/COPY_ROOT/opt/ai-dock/bin/supervisor-comfyui.sh +++ b/build/COPY_ROOT/opt/ai-dock/bin/supervisor-comfyui.sh @@ -65,7 +65,8 @@ function start() { fi fi - printf "Starting %s...\n" ${SERVICE_NAME} + printf "%s started: %s\n" "${SERVICE_NAME}" "$(date +"%x %T.%3N")" >> /var/log/timing_data + printf "Starting %s...\n" "${SERVICE_NAME}" kill $(lsof -t -i:$LISTEN_PORT) > /dev/null 2>&1 & wait -n diff --git a/build/COPY_ROOT/opt/caddy/share/service_config_18188 b/build/COPY_ROOT/opt/caddy/share/service_config_18188 index bfc33705..8ed5eeb3 100644 --- a/build/COPY_ROOT/opt/caddy/share/service_config_18188 +++ b/build/COPY_ROOT/opt/caddy/share/service_config_18188 @@ -9,4 +9,4 @@ } reverse_proxy localhost:!LISTEN_PORT -} \ No newline at end of file +} diff --git a/build/COPY_ROOT/opt/caddy/share/service_config_18188_auth b/build/COPY_ROOT/opt/caddy/share/service_config_18188_auth index b8a1bf9a..b83a6443 100644 --- a/build/COPY_ROOT/opt/caddy/share/service_config_18188_auth +++ b/build/COPY_ROOT/opt/caddy/share/service_config_18188_auth @@ -14,3 +14,4 @@ reverse_proxy localhost:!LISTEN_PORT } +