sudo nano /etc/supervisor/conf.d/laravel-worker.conf
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
directory=/var/www/site
command=php artisan queue:listen sqs --sleep=3 --tries=3
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=user
numprocs=1
redirect_stderr=true
stdout_logfile=/home/site/worker.log
stopwaitsecs=3600
files = supervisord.d/*.conf
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start "laravel-worker:*"
Добавить комментарий