Reputation: 17373
my server os is centOS.
# pwd
/etc/supervisord.d
at this path I created a file:
zarsamlog-worker.conf
the content of it:
[program:laravel-worker-log]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/artisan queue:work --sleep=3 --tries=2
autostart=true
autorestart=true
user=www-data
numprocs=2
redirect_stderr=true
stdout_logfile=/var/www/storage/logs/supervisor_queue-work.log
now:
but this command:
#supervisorctl reread
No config updates to processes
returns no config updates to processes!
Upvotes: 0
Views: 1000
Reputation: 431
Please refer below link, everything you need to configure and run supervisor with laravel, make sure you modify command from
command=php /var/www/artisan queue:work --sleep=3 --tries=2
to
command=php artisan queue:work --sleep=3 --tries=2
as exactly the way you execute in command line in laravel project Link : https://vannstudios.com/sending-emails-using-laravel-queues-and-beanstalkd
Upvotes: 1