[program:freshclam]
command=/bin/sh -c "freshclam --stdout || true; exec freshclam -d --foreground --stdout"
autorestart=true
priority=10

[program:clamd]
command=/bin/sh -c "while [ ! -f /var/lib/clamav/daily.cvd ] && [ ! -f /var/lib/clamav/daily.cld ]; do sleep 5; done; exec clamd --foreground"
autorestart=true
priority=20

[program:apache]
command=apache2-foreground
autorestart=true
priority=30

[program:worker]
command=php /var/www/html/artisan queue:work --sleep=1 --tries=1 --timeout=900
user=www-data
autorestart=true
numprocs=2
process_name=%(program_name)s_%(process_num)02d
priority=40

[program:scheduler]
command=/bin/sh -c "while true; do php /var/www/html/artisan schedule:run --no-interaction; sleep 60; done"
user=www-data
autorestart=true
