; Copy to the server (requires root / WHM), then adjust paths.
; Typical locations:
;   /etc/supervisord.d/latilms-queue.ini
;   /etc/supervisor/conf.d/latilms-queue.conf
;
; After editing:
;   supervisorctl reread
;   supervisorctl update
;   supervisorctl start latilms-queue:*
;
; Requires in .env when going live:
;   QUEUE_CONNECTION=database

[program:latilms-queue]
process_name=%(program_name)s
command=/usr/local/bin/php /home/USERNAME/LATI-Back/artisan queue:work database --sleep=3 --tries=3 --max-time=3600 --timeout=90
directory=/home/USERNAME/LATI-Back
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=USERNAME
numprocs=1
redirect_stderr=true
stdout_logfile=/home/USERNAME/logs/latilms-queue.log
stdout_logfile_maxbytes=5MB
stdout_logfile_backups=3
stopwaitsecs=3600
