Skip to content

Instantly share code, notes, and snippets.

@nicekiwi
Created May 28, 2015 04:29
Show Gist options
  • Save nicekiwi/75ddeb0ab5fa149edbf9 to your computer and use it in GitHub Desktop.
Save nicekiwi/75ddeb0ab5fa149edbf9 to your computer and use it in GitHub Desktop.
Supervisor Laravel Queue Example
[program:example-queue]
command=php artisan queue:work --queue=exmaple --tries=2 --daemon
directory=/var/www/example
stdout_logfile=/var/www/example/app/storage/logs/supervisor.log
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=10
stdout_capture_maxbytes=0
stdout_events_enabled=false
// use 2 workers
process_name=%(program_name)s_%(process_num)s
numprocs=2
numprocs_start=0
autostart=true
autorestart=true
startsecs=1
startretries=3
exitcodes=0,2
stopsignal=TERM
stopwaitsecs=10
redirect_stderr=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment