Tweaked supervisor definitions
All checks were successful
dockerbuild / Build docker image (push) Successful in 1m18s

This commit is contained in:
Chris 2024-02-07 17:29:02 +01:00
parent 5392cca13b
commit d34e0b928e
4 changed files with 15 additions and 3 deletions

7
CHANGES.md Normal file
View File

@ -0,0 +1,7 @@
# Changes
## 7 Feb 2024
- Removed all but the FATAL condition from the watchdog.
- Made the services retry 3 times to properly start.
- This should make it easier to add short-lived workers.

View File

@ -1,7 +1,9 @@
[program:nginx] [program:nginx]
command=/usr/sbin/nginx -c /etc/nginx/nginx.conf -g 'daemon off;' command=/usr/sbin/nginx -c /etc/nginx/nginx.conf -g 'daemon off;'
autostart=true autostart=true
autorestart=false autorestart=true
startretries=3
startsecs=10
stdout_logfile=/dev/stdout stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0 stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr stderr_logfile=/dev/stderr

View File

@ -1,7 +1,9 @@
[program:php-fpm] [program:php-fpm]
command=/usr/sbin/php-fpm83 -F command=/usr/sbin/php-fpm83 -F
autostart=true autostart=true
autorestart=false autorestart=true
startretries=3
startsecs=10
stdout_logfile=/dev/stdout stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0 stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr stderr_logfile=/dev/stderr

View File

@ -1,3 +1,4 @@
[eventlistener:watchdog] [eventlistener:watchdog]
command=sh -c "echo READY && read line && kill -SIGQUIT $PPID" command=sh -c "echo READY && read line && kill -SIGQUIT $PPID"
events=PROCESS_STATE_STOPPED,PROCESS_STATE_EXITED,PROCESS_STATE_FATAL events=PROCESS_STATE_FATAL
; used to also have PROCESS_STATE_STOPPED,PROCESS_STATE_EXITED,