yum install supervisor
Create file on: /etc/supervisor.d/sportisio-worker.conf
[program:sportisio-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/devapi.sportisio.com/artisan queue:work --sleep=3 --tries=3
autostart=true
autorestart=true
user=root
numprocs=8
redirect_stderr=true
stdout_logfile=/var/www/devapi.sportisio.com/worker.log
and add include in /etc/supervisor.conf
[include]
files = supervisord.d/*.conf
$ systemctl enable supervisord
$ service supervisord start
change to nano /etc/supervisord.conf