[supervisord] nodaemon=true user=root logfile=/var/log/supervisor/supervisord.log pidfile=/var/run/supervisord.pid loglevel=warn [program:php-fpm] command=php-fpm --nodaemonize --fpm-config /usr/local/etc/php-fpm.conf environment=TZ="Asia/Kuala_Lumpur" autostart=true autorestart=true priority=5 stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 stopasgroup=true killasgroup=true [program:queue-worker] command=php /var/www/html/artisan queue:work --sleep=3 --tries=3 --max-time=3600 --memory=128 directory=/var/www/html user=www-data environment=TZ="Asia/Kuala_Lumpur" autostart=true autorestart=true priority=10 startsecs=5 startretries=3 stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 stopasgroup=true killasgroup=true stopsignal=SIGTERM stopwaitsecs=60 [program:scheduler] command=/bin/sh -c "while true; do php /var/www/html/artisan schedule:run --verbose --no-interaction; sleep 60; done" directory=/var/www/html user=www-data environment=TZ="Asia/Kuala_Lumpur" autostart=true autorestart=true priority=15 startsecs=0 stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0