## Installing and configuring the supervisor on a new server
sudo apt-get install supervisor -y
sudo nano /etc/supervisor/conf.d/queue-worker.conf
[program:queue-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/test.kulibri.com/artisan queue:work --tries=3
autostart=true
autorestart=true
user=www-data
numprocs=3
redirect_stderr=true
stdout_logfile=/var/www/test.kulibri.com/storage/logs/queue-worker.log
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start queue-worker:*
sudo supervisorctl status

## Fixing queue issues
1) Check if the queue worker(2) is running
Use the following command for this
ps -aux | grep queue:work
2) Kill the queue proceses
3) Run the followign command to activate new queue workers
sudo supervisorctl start queue-worker:*