Skip to content

Instantly share code, notes, and snippets.

@hassanrazadev
Created March 10, 2021 17:28
Show Gist options
  • Save hassanrazadev/1a90b590bd7d4b0c4d2409fefb7d74fb to your computer and use it in GitHub Desktop.
Save hassanrazadev/1a90b590bd7d4b0c4d2409fefb7d74fb to your computer and use it in GitHub Desktop.
Configuration file for supervisord to run Laravel queue on Linux server.
[supervisord]
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /path/to/laravel/artisan queue:work
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=forge
numprocs=8
redirect_stderr=true
stdout_logfile=/path/to/laravel/worker.log
stopwaitsecs=3600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment