File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
root-files/opt/flownative/php/etc Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ RUN export FLOWNATIVE_LOG_PATH_AND_FILENAME=/dev/stdout \
3939USER 1000
4040EXPOSE 9000 9001
4141
42+ # terminate with SIGQUIT which is handled gracefully by php-fpm
43+ # contrary to SIGTERM which terminates php-fpm immediately.
44+ STOPSIGNAL SIGQUIT
45+
4246WORKDIR ${PHP_BASE_PATH}
4347ENTRYPOINT [ "/entrypoint.sh" ]
4448CMD [ "run" ]
Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ pid = ${PHP_TMP_PATH}/php-fpm.pid
77; the shell running php-fpm.sh, so we can wait for it with "wait":
88daemonize = no
99
10+ ; tell the child processes to wait for 5s before executing the signal
11+ ; received from the parent process, to make the php-fpm container
12+ ; terminate gracefully:
13+ process_control_timeout = 5
14+
1015[www]
1116
1217access.log = ${PHP_FPM_ACCESS_LOG_PATH}
You can’t perform that action at this time.
0 commit comments