chore: redirect php-fpm process to supervisor's log, refactoring of code

This commit is contained in:
jkaninda committed 2024-01-13 14:19:32 +01:00
1 parent 9fa8b63e37
commit 2f274a701b
10 files changed
+29 -31

No files matched your search

+7 -3
View File
@@ -1,16 +1,20 @@
[supervisord]
nodaemon=true
#user=root
user=%(ENV_USER_NAME)s
logfile=/var/log/supervisor/supervisord.log
logfile_maxbytes = 50MB
pidfile=/tmp/supervisord.pid
directory = /tmp
[program:php-fpm]
command=/usr/local/sbin/php-fpm
numprocs=1
autostart=true
autorestart=true
stderr_logfile=/var/log/php-fpm_consumer.err.log
stdout_logfile=/var/log/php-fpm_consumer.out.log
redirect_stderr=true
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stdout
stdout_logfile_maxbytes=0
user=www-data
priority=1