diff --git a/config/supervisord.conf b/config/supervisord.conf index 8e9c4345..a2869136 100644 --- a/config/supervisord.conf +++ b/config/supervisord.conf @@ -7,7 +7,8 @@ command=/bin/sh -c "\ uv run python -m planoai.config_generator && \ envsubst < /app/plano_config_rendered.yaml > /app/plano_config_rendered.env_sub.yaml && \ envsubst < /etc/envoy/envoy.yaml > /etc/envoy.env_sub.yaml && \ - touch /tmp/config_ready + touch /tmp/config_ready || \ + (echo 'Config generation failed, shutting down'; kill -15 $(cat /var/run/supervisord.pid))" priority=10 autorestart=false startsecs=0