Skip to content

Instantly share code, notes, and snippets.

@RhythmShahriar
Created May 30, 2020 13:49
Show Gist options
  • Save RhythmShahriar/3a1cb232498544e381347b68293c8d4e to your computer and use it in GitHub Desktop.
Save RhythmShahriar/3a1cb232498544e381347b68293c8d4e to your computer and use it in GitHub Desktop.
supervisor config file for laravel queue
## Install - Ubuntu
# sudo apt install supervisor -y
## Place this file in /etc/supervisor/conf.d
## add this config for supervisor process
# supervisorctl reread
## Update the process
# supervisorctl update
[program:prod-app-queue-worker]
process_name=%(program_name)s_%(process_num)02d
command=php [PATH TO YOUR LARAVEL APP]/artisan queue:work --tries=1
autostart=true
autorestart=true
user=root
numprocs=8
redirect_stderr=true
stdout_logfile=/[PATH TO YOUR LOGS]/app-queue-out.log
stderr_logfile=/[PATH TO YOUR LOGS]/app-queue-err.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment