-
-
Save Erth0/50ac126c5b488d96f4400ef35aea5a1b to your computer and use it in GitHub Desktop.
Install Supervisor Ubuntu And Set it Up.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1)sudo apt install supervisor or | |
sudo apt-get install supervisor | |
2)cd /etc/supervisor/conf.d 3)create new file inside | |
sudo vim queue-worker.conf | |
File Content | |
[program:email-queue] | |
process_name=%(program_name)s_%(process_num)02d | |
command=php /var/www/html/laravelproject/artisan queue:work | |
autostart=true | |
autorestart=true | |
user=root | |
numprocs=2 | |
redirect_stderr=true | |
stdout_logfile=/var/www/html/laravelproject/storage/logs/supervisord.log | |
4)sudo supervisorctl reread | |
when run this command get output queue-worker:available | |
5)sudo supervisorctl update | |
when run this command get output queue-worker:added process group | |
other command | |
1)sudo supervisorctl reload | |
when run this command get output Restarted supervisord | |
2)sudo service supervisor restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment