Make supervisord watch php logs

This commit is contained in:
mykola2312 2025-01-15 00:54:59 +02:00
parent c6bc83ad87
commit 5e78afc43e

View file

@ -17,11 +17,16 @@ autorestart=true
priority=20 priority=20
stdout_logfile=/var/log/fpm.log stdout_logfile=/var/log/fpm.log
stderr_logfile=/var/log/fpm_error.log stderr_logfile=/var/log/fpm_error.log
stdout_logfile_maxbytes=20MB stdout_logfile_maxbytes=0
stdout_logfile_backups=5 stdout_logfile_backups=5
stderr_logfile_maxbytes=20MB stderr_logfile_maxbytes=0
stderr_logfile_backups=5 stderr_logfile_backups=5
[program:php-fpm-log]
command=tail -f /var/log/fpm.log /var/log/fpm_error.log
stdout_events_enabled=true
stderr_events_enabled=true
[program:nginx] [program:nginx]
command=/usr/sbin/nginx -g "daemon off;" -c /etc/nginx/nginx.conf command=/usr/sbin/nginx -g "daemon off;" -c /etc/nginx/nginx.conf
autostart=true autostart=true