From f8c737099481f459d7c52863817704ee766ac607 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 20 Dec 2022 16:10:03 -0800 Subject: [PATCH] Add "fastcgi.logging = Off" to fpm defaults This should (finally) fix errors between FPM and NGINX. --- 8.0-rc/alpine3.16/fpm/Dockerfile | 7 ++++++- 8.0-rc/bullseye/fpm/Dockerfile | 7 ++++++- 8.0-rc/buster/fpm/Dockerfile | 7 ++++++- 8.0/alpine3.16/fpm/Dockerfile | 7 ++++++- 8.0/bullseye/fpm/Dockerfile | 7 ++++++- 8.0/buster/fpm/Dockerfile | 7 ++++++- 8.1-rc/alpine3.16/fpm/Dockerfile | 7 ++++++- 8.1-rc/alpine3.17/fpm/Dockerfile | 7 ++++++- 8.1-rc/bullseye/fpm/Dockerfile | 7 ++++++- 8.1-rc/buster/fpm/Dockerfile | 7 ++++++- 8.1/alpine3.16/fpm/Dockerfile | 7 ++++++- 8.1/alpine3.17/fpm/Dockerfile | 7 ++++++- 8.1/bullseye/fpm/Dockerfile | 7 ++++++- 8.1/buster/fpm/Dockerfile | 7 ++++++- 8.2-rc/alpine3.16/fpm/Dockerfile | 7 ++++++- 8.2-rc/alpine3.17/fpm/Dockerfile | 7 ++++++- 8.2-rc/bullseye/fpm/Dockerfile | 7 ++++++- 8.2-rc/buster/fpm/Dockerfile | 7 ++++++- 8.2/alpine3.16/fpm/Dockerfile | 7 ++++++- 8.2/alpine3.17/fpm/Dockerfile | 7 ++++++- 8.2/bullseye/fpm/Dockerfile | 7 ++++++- 8.2/buster/fpm/Dockerfile | 7 ++++++- Dockerfile-linux.template | 7 ++++++- 23 files changed, 138 insertions(+), 23 deletions(-) diff --git a/8.0-rc/alpine3.16/fpm/Dockerfile b/8.0-rc/alpine3.16/fpm/Dockerfile index 81a3798c..2a98ff44 100644 --- a/8.0-rc/alpine3.16/fpm/Dockerfile +++ b/8.0-rc/alpine3.16/fpm/Dockerfile @@ -246,7 +246,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.0-rc/bullseye/fpm/Dockerfile b/8.0-rc/bullseye/fpm/Dockerfile index e8894dbe..1a577fb7 100644 --- a/8.0-rc/bullseye/fpm/Dockerfile +++ b/8.0-rc/bullseye/fpm/Dockerfile @@ -261,7 +261,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.0-rc/buster/fpm/Dockerfile b/8.0-rc/buster/fpm/Dockerfile index be0c5054..9b94405e 100644 --- a/8.0-rc/buster/fpm/Dockerfile +++ b/8.0-rc/buster/fpm/Dockerfile @@ -261,7 +261,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.0/alpine3.16/fpm/Dockerfile b/8.0/alpine3.16/fpm/Dockerfile index 3c14965b..5fcaa103 100644 --- a/8.0/alpine3.16/fpm/Dockerfile +++ b/8.0/alpine3.16/fpm/Dockerfile @@ -246,7 +246,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.0/bullseye/fpm/Dockerfile b/8.0/bullseye/fpm/Dockerfile index ccbe30d3..ca6af6be 100644 --- a/8.0/bullseye/fpm/Dockerfile +++ b/8.0/bullseye/fpm/Dockerfile @@ -261,7 +261,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.0/buster/fpm/Dockerfile b/8.0/buster/fpm/Dockerfile index ae365c4a..c232f4be 100644 --- a/8.0/buster/fpm/Dockerfile +++ b/8.0/buster/fpm/Dockerfile @@ -261,7 +261,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.1-rc/alpine3.16/fpm/Dockerfile b/8.1-rc/alpine3.16/fpm/Dockerfile index c343b8c6..42bdd713 100644 --- a/8.1-rc/alpine3.16/fpm/Dockerfile +++ b/8.1-rc/alpine3.16/fpm/Dockerfile @@ -246,7 +246,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.1-rc/alpine3.17/fpm/Dockerfile b/8.1-rc/alpine3.17/fpm/Dockerfile index 78defbed..5011fb3b 100644 --- a/8.1-rc/alpine3.17/fpm/Dockerfile +++ b/8.1-rc/alpine3.17/fpm/Dockerfile @@ -246,7 +246,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.1-rc/bullseye/fpm/Dockerfile b/8.1-rc/bullseye/fpm/Dockerfile index 0f8c64f8..517d6057 100644 --- a/8.1-rc/bullseye/fpm/Dockerfile +++ b/8.1-rc/bullseye/fpm/Dockerfile @@ -261,7 +261,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.1-rc/buster/fpm/Dockerfile b/8.1-rc/buster/fpm/Dockerfile index d6f27254..08473563 100644 --- a/8.1-rc/buster/fpm/Dockerfile +++ b/8.1-rc/buster/fpm/Dockerfile @@ -261,7 +261,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.1/alpine3.16/fpm/Dockerfile b/8.1/alpine3.16/fpm/Dockerfile index 9c9b81a2..f51d7885 100644 --- a/8.1/alpine3.16/fpm/Dockerfile +++ b/8.1/alpine3.16/fpm/Dockerfile @@ -246,7 +246,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.1/alpine3.17/fpm/Dockerfile b/8.1/alpine3.17/fpm/Dockerfile index c6b40356..b6dea0cf 100644 --- a/8.1/alpine3.17/fpm/Dockerfile +++ b/8.1/alpine3.17/fpm/Dockerfile @@ -246,7 +246,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.1/bullseye/fpm/Dockerfile b/8.1/bullseye/fpm/Dockerfile index fd8c93bd..decbf864 100644 --- a/8.1/bullseye/fpm/Dockerfile +++ b/8.1/bullseye/fpm/Dockerfile @@ -261,7 +261,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.1/buster/fpm/Dockerfile b/8.1/buster/fpm/Dockerfile index f295257c..7ce72ed7 100644 --- a/8.1/buster/fpm/Dockerfile +++ b/8.1/buster/fpm/Dockerfile @@ -261,7 +261,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.2-rc/alpine3.16/fpm/Dockerfile b/8.2-rc/alpine3.16/fpm/Dockerfile index ef122d76..755bb4c4 100644 --- a/8.2-rc/alpine3.16/fpm/Dockerfile +++ b/8.2-rc/alpine3.16/fpm/Dockerfile @@ -246,7 +246,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.2-rc/alpine3.17/fpm/Dockerfile b/8.2-rc/alpine3.17/fpm/Dockerfile index 943a27ae..6dae6aba 100644 --- a/8.2-rc/alpine3.17/fpm/Dockerfile +++ b/8.2-rc/alpine3.17/fpm/Dockerfile @@ -246,7 +246,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.2-rc/bullseye/fpm/Dockerfile b/8.2-rc/bullseye/fpm/Dockerfile index 91dbc004..a7fbe0f1 100644 --- a/8.2-rc/bullseye/fpm/Dockerfile +++ b/8.2-rc/bullseye/fpm/Dockerfile @@ -261,7 +261,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.2-rc/buster/fpm/Dockerfile b/8.2-rc/buster/fpm/Dockerfile index ec73202d..8b49fad5 100644 --- a/8.2-rc/buster/fpm/Dockerfile +++ b/8.2-rc/buster/fpm/Dockerfile @@ -261,7 +261,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.2/alpine3.16/fpm/Dockerfile b/8.2/alpine3.16/fpm/Dockerfile index 941731cf..d9afd056 100644 --- a/8.2/alpine3.16/fpm/Dockerfile +++ b/8.2/alpine3.16/fpm/Dockerfile @@ -246,7 +246,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.2/alpine3.17/fpm/Dockerfile b/8.2/alpine3.17/fpm/Dockerfile index d8d2c309..065aa4e7 100644 --- a/8.2/alpine3.17/fpm/Dockerfile +++ b/8.2/alpine3.17/fpm/Dockerfile @@ -246,7 +246,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.2/bullseye/fpm/Dockerfile b/8.2/bullseye/fpm/Dockerfile index 2b67b48c..6f22b1d7 100644 --- a/8.2/bullseye/fpm/Dockerfile +++ b/8.2/bullseye/fpm/Dockerfile @@ -261,7 +261,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/8.2/buster/fpm/Dockerfile b/8.2/buster/fpm/Dockerfile index 27022c3e..5e4235ca 100644 --- a/8.2/buster/fpm/Dockerfile +++ b/8.2/buster/fpm/Dockerfile @@ -261,7 +261,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163 diff --git a/Dockerfile-linux.template b/Dockerfile-linux.template index 8770bfed..03497163 100644 --- a/Dockerfile-linux.template +++ b/Dockerfile-linux.template @@ -482,7 +482,12 @@ RUN set -eux; \ echo; \ echo '[www]'; \ echo 'listen = 9000'; \ - } | tee php-fpm.d/zz-docker.conf + } | tee php-fpm.d/zz-docker.conf; \ + mkdir -p "$PHP_INI_DIR/conf.d"; \ + { \ + echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; \ + echo 'fastcgi.logging = Off'; \ + } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # Override stop signal to stop process gracefully # https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163