28 lines
639 B
Plaintext
28 lines
639 B
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
user=root
|
|
logfile=/var/log/supervisor/supervisord.log
|
|
pidfile=/var/run/supervisord.pid
|
|
|
|
[program:php-fpm]
|
|
command=php-fpm
|
|
autostart=true
|
|
autorestart=true
|
|
priority=5
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
|
|
[program:queue-worker]
|
|
process_name=%(program_name)s_%(process_num)02d
|
|
command=php /var/www/html/artisan queue:work redis --sleep=3 --tries=3 --max-time=3600 --memory=256
|
|
autostart=true
|
|
autorestart=true
|
|
stopasgroup=true
|
|
killasgroup=true
|
|
numprocs=2
|
|
redirect_stderr=true
|
|
stdout_logfile=/var/log/supervisor/queue-worker.log
|
|
stopwaitsecs=3600
|