在supervisor的include中,我们可以创建一个SendMail项目
[program:waaQueue] command = php artisan queue:work directory = /path/to/app process_name = %(program_name)s_%(process_num)s numprocs = 6 autostart = true autorestart = true stdout_logfile = /path/to/app/storage/logs/supervisor_waaQueue.log stdout_logfile_maxbytes = 10MB stderr_logfile = /path/to/app/storage/logs/supervisor_wqqQueue.log stderr_logfile_maxbytes = 10MB 启动首先启动supervisord,执行supervisord即可,它会在默认目录下寻找配置文件
运行supervisorctl help来查看可使用命令