[supervisorctl]
serverurl=unix:///run/supervisor.sock

[supervisord]
nodaemon=true
logfile=/dev/null
pidfile=/var/www/html/supervisord.pid
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
minfds=10000

[program:default-worker]
process_name=%(program_name)s_%(process_num)02d
command=nice -n 10 php /var/www/html/artisan queue:work --queue=default,notification --tries=3 --verbose --timeout=30 --max-jobs=1000 --max-time=3600
numprocs=2
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
stopwaitsecs=3600
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0


[program:notifications-worker]
process_name=%(program_name)s_%(process_num)02d
command=nice -n 10 php /var/www/html/artisan queue:work --queue=notifications,default --tries=3 --verbose --timeout=30 --sleep=3 --max-jobs=1000 --max-time=3600
numprocs=2
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
stopwaitsecs=3600
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0

[group:workers]
programs=default-worker,notifications-worker

[program:logrotate]
command=/bin/sh -c "while true; do /usr/sbin/logrotate /etc/logrotate.conf; sleep 86400; done"
autostart=true
autorestart=true
