Supervisor configuration on ubuntu for laravel
1st step =
ubuntu ~ $ sudo apt install supervisor
2nd step =
ubuntu ~ $ service supervisor status
3- Add a Program Configuration file in /etc/supervisor/conf.d/
[program:queue]
process_name=%(program_name)s_%(process_num)02d
command=sudo php /var/www/html/artisan queue:work --tries=3 --daemon --queue=test -vvv
user=root
autostart=true
autorestart=true
numprocs=1
redirect_stderr=true
stdout_logfile=/var/www/html/storage/logs/queue-test.log
4- Tell supervisor about the new program configuration file/
ubuntu ~ $ supervisorctl reread
queue: changed
ubuntu ~ $ supervisorctl update
ubuntu ~ $ supervisorctl status
queue:queue_00 RUNNING pid 18494, uptime 0:00:02
Comments on this
15 april, 2019
Elinize sağlık güzel bir site.