34 lines
863 B
Plaintext
34 lines
863 B
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
user=root
|
|
logfile=/var/log/supervisor/supervisord.log
|
|
pidfile=/var/run/supervisord.pid
|
|
|
|
[program:octane]
|
|
process_name=%(program_name)s_%(process_num)02d
|
|
directory=/app
|
|
command=php artisan octane:start --server=swoole --host=0.0.0.0 --port=80 --workers=auto --task-workers=auto --max-requests=500
|
|
user=octane
|
|
autostart=true
|
|
autorestart=true
|
|
environment=LARAVEL_OCTANE="1"
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
|
|
[program:laravel-worker]
|
|
process_name=%(program_name)s_%(process_num)02d
|
|
directory=/app
|
|
command=php artisan queue:work --sleep=2 --max-time=3600
|
|
autostart=true
|
|
autorestart=true
|
|
stopasgroup=true
|
|
killasgroup=true
|
|
user=octane
|
|
numprocs=4
|
|
stopwaitsecs=3600
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0 |