Skip to content

Instantly share code, notes, and snippets.

@Erth0
Created December 22, 2019 09:28
Show Gist options
  • Save Erth0/50ac126c5b488d96f4400ef35aea5a1b to your computer and use it in GitHub Desktop.
Save Erth0/50ac126c5b488d96f4400ef35aea5a1b to your computer and use it in GitHub Desktop.
Install Supervisor Ubuntu And Set it Up.
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