Supervisor

Перезагрузка

service supervisor restart

Включение интерактивного режима:

sudo supervisorctl

supervisor> help

Конфигурация:

sudo nano /etc/supervisor/conf.d/laravel-worker.conf
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /home/forge/app.com/artisan queue:work sqs --sleep=3 --tries=3
autostart=true
autorestart=true
user=forge
numprocs=8
redirect_stderr=true
stdout_logfile=/home/forge/app.com/worker.log

Знакомство с новой конфигурацией:

sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start laravel-worker:*