Some configurations of CentOS7 supervisord process Manager
1 supervisorctl shutdown off
2 supervisorctl reload overload
3 supervisorctl restart all restart all services
4 find /-name supervisor.sock
Unlink / path/supervisor.sock
Kill process
5 Note that the ini file suffix must be set to start the process.
5.1 required for the first step of supervisord
5.2 supervisorctl start laravel-worker:* this command can start the second step
6 when developing, you should pay attention to restart the process after the code has been changed, because it is resident
Configuration
Cat / etc/supervisord.d/nad_crm_queue_send_book_email_one.ini
[program:send_crm_book_email_one]
Process_name=% (programname) s% (process_num) 02d
Command=php72 / var/www/nad/crm/api/nad-nad_crm_api_0119/artisan queue:work redis-queue=send_book_email_one-sleep=3-tries=3
Autostart=true
Autorestart=true
User=root
Numprocs=8
Redirect_stderr=true
Stdout_logfile=/var/www/nad/crm/api/nad-nad_crm_api_0119/storage/logs/send_book_email_one.log