[supervisord] nodaemon=true logfile=/var/www/logs/supervisord.log ; 設定 log 儲存位置 pidfile=/var/www/logs/supervisord.pid ; 設定 pid 儲存位置 [program:queue-worker] directory=/var/www/html command=php artisan queue:work --daemon --timeout=3600 --tries=1 --queue=default autostart=true autorestart=true priority=1 stdout_logfile=/var/www/logs/queue.log stderr_logfile=/var/www/logs/queue_error.log [program:scheduler] directory=/var/www/html command=sh -c "while true; do php artisan schedule:run; sleep 60; done" autostart=true autorestart=true priority=2 stdout_logfile=/var/www/logs/schedule.log stderr_logfile=/var/www/logs/schedule_error.log