进入docker

    root@neimao:~# docker exec -it bschem bash

进入守护进程配置目录

    root@d88dea82f054:/var/www/html# cd /etc/supervisor/conf.d/

新建发货队列配置文件

    root@d88dea82f054:/etc/supervisor/conf.d# touch SendPriceWechatJob.conf

配置文件详情

    [program:SendDeliverWechatJob]    
    process_name=%(program_name)s_%(process_num)02d
    command=php /var/www/html/artisan queue:work redis --queue=SendDeliverWechat --sleep=3  --tries=3
    autostart=true
    autorestart=true
    user=www-data
    numprocs=3
    redirect_stderr=true
    stdout_logfile=/var/www/html/storage/logs/worker_SendDeliverWechat.log

读取当前运行配置和program配置文件的差异

   root@d88dea82f054:/etc/supervisor/conf.d# supervisorctl reread

重载配置文件并重启受影响的program

   root@d88dea82f054:/etc/supervisor/conf.d# supervisorctl update

查看program状态

   root@d88dea82f054:/etc/supervisor/conf.d# supervisorctl status