From 45973ef12e883d2c3516fc387fac0a0271cabc7f Mon Sep 17 00:00:00 2001 From: Mihai Coman Date: Sat, 9 Nov 2024 00:26:05 +0200 Subject: [PATCH 1/2] disable domain-validator logs Explicitly use NONE value for stdout_logfile and stderr_logfile to disable domain-validator logs. Accoring to supervisord documentation, if stdout_logfile/stderr_logfile is unset or set to AUTO, supervisor will automatically choose a file location. If this is set to NONE, supervisord will create no log file. Signed-off-by: Mihai Coman --- Containers/mastercontainer/supervisord.conf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Containers/mastercontainer/supervisord.conf b/Containers/mastercontainer/supervisord.conf index f64c9725..022daa3b 100644 --- a/Containers/mastercontainer/supervisord.conf +++ b/Containers/mastercontainer/supervisord.conf @@ -58,9 +58,7 @@ user=root [program:domain-validator] # Logging is disabled as otherwise all attempts will be logged which spams the logs -# stdout_logfile=/dev/stdout -# stdout_logfile_maxbytes=0 -# stderr_logfile=/dev/stderr -# stderr_logfile_maxbytes=0 +stdout_logfile=NONE +stderr_logfile=NONE command=php -S 127.0.0.1:9876 /var/www/docker-aio/php/domain-validator.php user=www-data From 6d51b673fc5d77badaec42c40b2e7dce5f3f658c Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Mon, 11 Nov 2024 07:18:59 +0100 Subject: [PATCH 2/2] adjust additional places Signed-off-by: Simon L. --- Containers/apache/supervisord.conf | 4 ++-- Containers/mastercontainer/supervisord.conf | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Containers/apache/supervisord.conf b/Containers/apache/supervisord.conf index d6a93803..7ab935e4 100644 --- a/Containers/apache/supervisord.conf +++ b/Containers/apache/supervisord.conf @@ -9,8 +9,8 @@ logfile_backups=10 loglevel=error [program:apache] -# stdout_logfile=/dev/stdout -# stdout_logfile_maxbytes=0 +# Stdout logging is disabled as otherwise the logs are spammed +stdout_logfile=NONE stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 command=apachectl -DFOREGROUND diff --git a/Containers/mastercontainer/supervisord.conf b/Containers/mastercontainer/supervisord.conf index 022daa3b..fa5d0845 100644 --- a/Containers/mastercontainer/supervisord.conf +++ b/Containers/mastercontainer/supervisord.conf @@ -9,16 +9,16 @@ loglevel=error user=root [program:php-fpm] -# stdout_logfile=/dev/stdout -# stdout_logfile_maxbytes=0 +# Stdout logging is disabled as otherwise the logs are spammed +stdout_logfile=NONE stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 command=php-fpm user=root [program:apache] -# stdout_logfile=/dev/stdout -# stdout_logfile_maxbytes=0 +# Stdout logging is disabled as otherwise the logs are spammed +stdout_logfile=NONE stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 command=httpd -DFOREGROUND