queue:work
process if it fails. /etc/supervisor/conf.d
directory. Within this directory, you may create any number of configuration files that instruct supervisor how your processes should be monitored. For example, let's create a crypterion-worker.conf
file that starts and monitors a queue:work
process:numprocs
directive will instruct Supervisor to run 8 queue:work
processes and monitor all of them, automatically restarting them if they fail.command=php /var/www/crypterion/artisan queue:work --tries=1
is as follows:php
if you want to use a different php version from the one available in the global scope, you may use the full path to the php location instead. e.g /opt/php71/bin/php
/var/www/crypterion/artisan
is the full path to the extracted content of the script. For example in cPanel it may be found in /home/<username>/crypterion/artisan
according to the installation procedure where <username> is your cPanel username.user=oluwatosin
to your username. i.e user=<username>