From 37d117608e537040d1ca3c8caa2e4125b8394d0f Mon Sep 17 00:00:00 2001 From: MrAnyx Date: Fri, 3 Jan 2025 22:43:24 +0000 Subject: [PATCH] fix: Refactor supervisord configuration to disable unnecessary programs and improve clarity --- .docker/supervisord.conf | 43 +++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/.docker/supervisord.conf b/.docker/supervisord.conf index 4c9aaeb..b037828 100644 --- a/.docker/supervisord.conf +++ b/.docker/supervisord.conf @@ -3,26 +3,37 @@ nodaemon=true logfile=/dev/null logfile_maxbytes=0 -[program:apache] -command=apache2-foreground +[program:env] +command=env stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 -autorestart=true -startsecs=0 -autostart=true -startretries=10 - -[program:messenger-consume] -command=source /etc/environment && php /var/www/html/bin/console messenger:consume async --time-limit=3600 -numprocs=2 +autorestart=false startsecs=10 autostart=true -autorestart=true startretries=10 -process_name=%(program_name)s_%(process_num)02d -stdout_logfile=/dev/stdout -stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr -stderr_logfile_maxbytes=0 + +# [program:apache] +# command=apache2-foreground +# stdout_logfile=/dev/stdout +# stdout_logfile_maxbytes=0 +# stderr_logfile=/dev/stderr +# stderr_logfile_maxbytes=0 +# autorestart=true +# startsecs=0 +# autostart=true +# startretries=10 + +# [program:messenger-consume] +# command=php /var/www/html/bin/console messenger:consume async --time-limit=3600 +# numprocs=2 +# startsecs=10 +# autostart=true +# autorestart=true +# startretries=10 +# process_name=%(program_name)s_%(process_num)02d +# stdout_logfile=/dev/stdout +# stdout_logfile_maxbytes=0 +# stderr_logfile=/dev/stderr +# stderr_logfile_maxbytes=0