34 lines
808 B
Plaintext
Executable File
34 lines
808 B
Plaintext
Executable File
[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=/var/log/supervisor/php-fpm.log
|
|
stderr_logfile=/var/log/supervisor/php-fpm.log
|
|
|
|
[program:nginx]
|
|
command=nginx -g "daemon off;"
|
|
autostart=true
|
|
autorestart=true
|
|
priority=10
|
|
stdout_logfile=/var/log/supervisor/nginx.log
|
|
stderr_logfile=/var/log/supervisor/nginx.log
|
|
|
|
[program:laravel-worker]
|
|
process_name=%(program_name)s_%(process_num)02d
|
|
command=php /var/www/html/artisan queue:work --sleep=3 --tries=3 --max-time=3600
|
|
autostart=false
|
|
autorestart=true
|
|
stopasgroup=true
|
|
killasgroup=true
|
|
user=www-data
|
|
numprocs=1
|
|
redirect_stderr=true
|
|
stdout_logfile=/var/www/html/storage/logs/worker.log
|
|
stopwaitsecs=3600 |