Make supervisord watch php logs
This commit is contained in:
parent
c6bc83ad87
commit
5e78afc43e
1 changed files with 7 additions and 2 deletions
|
@ -17,11 +17,16 @@ autorestart=true
|
|||
priority=20
|
||||
stdout_logfile=/var/log/fpm.log
|
||||
stderr_logfile=/var/log/fpm_error.log
|
||||
stdout_logfile_maxbytes=20MB
|
||||
stdout_logfile_maxbytes=0
|
||||
stdout_logfile_backups=5
|
||||
stderr_logfile_maxbytes=20MB
|
||||
stderr_logfile_maxbytes=0
|
||||
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]
|
||||
command=/usr/sbin/nginx -g "daemon off;" -c /etc/nginx/nginx.conf
|
||||
autostart=true
|
||||
|
|
Loading…
Add table
Reference in a new issue