From 15918a7e1bee31d816ec179e3217087fbb0ec96e Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 16 Dec 2023 13:43:58 +0000 Subject: [PATCH] php-fpm: redirect stdout/err of child processes --- images/php-fpm/supervisord.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/images/php-fpm/supervisord.conf b/images/php-fpm/supervisord.conf index 46e0f45..4021676 100644 --- a/images/php-fpm/supervisord.conf +++ b/images/php-fpm/supervisord.conf @@ -1,8 +1,18 @@ [supervisord] nodaemon=true +logfile=/proc/self/fd/1 +logfile_maxbytes=0 [program:phpfpm] command=/usr/sbin/php-fpm8.3 --nodaemonize --fpm-config /app/www.conf +stdout_logfile=/proc/self/fd/1 +stdout_logfile_maxbytes=0 +stderr_logfile=/proc/self/fd/2 +stderr_logfile_maxbytes=0 [program:lighttpd] command=/usr/sbin/lighttpd -D -f /app/lighttpd.conf +stdout_logfile=/proc/self/fd/1 +stdout_logfile_maxbytes=0 +stderr_logfile=/proc/self/fd/2 +stderr_logfile_maxbytes=0