[supervisord]
nodaemon = false
logfile = /dev/null
logfile_maxbytes = 0
pidfile = /run/supervisord.pid


[program:worker]
directory=/var/www
process_name=queue_%(process_num)02d
command=php artisan queue:work --sleep=3 --tries=3
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=abdelrahman
numprocs=2
stopwaitsecs=3600
priority = 1
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0

[program:webscoket]
directory=/var/www
process_name=queue_%(process_num)02d
command=php artisan websockets:serve --port=8443
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=abdelrahman
numprocs=2
stopwaitsecs=3600
priority = 1
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0


[program:cron]
directory=/var/www
process_name=queue_%(process_num)02d
command=service cron start
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=abdelrahman
numprocs=2
stopwaitsecs=3600
priority = 1
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0

[program:horizon]
directory=/var/www

command=php artisan horizon
process_name=%(program_name)s
startsecs = 0
autostart = true
autorestart = true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
