add supervisor

This commit is contained in:
iVampireSP.com 2022-11-06 23:28:12 +08:00
parent 65abb99f78
commit 10e1ea0ba0
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
3 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,13 @@
[program:lae-schedule]
process_name=%(program_name)s_%(process_num)02d
directory=/opt/lae
command=php artisan schedule:work
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=root
numprocs=1
redirect_stderr=true
stdout_logfile=/var/log/lae-schedule.log
stopwaitsecs=3600

13
supervisor/lae-web.conf Normal file
View File

@ -0,0 +1,13 @@
[program:lae-web]
process_name=%(program_name)s_%(process_num)02d
directory=/opt/lae
command=php artisan octane:start
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=root
numprocs=1
redirect_stderr=true
stdout_logfile=/var/log/lae-web.log
stopwaitsecs=3600

View File

@ -0,0 +1,13 @@
[program:lae-worker]
process_name=%(program_name)s_%(process_num)02d
directory=/opt/lae
command=php artisan queue:work --tries=3 --max-time=3600
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=root
numprocs=8
redirect_stderr=true
stdout_logfile=/var/log/lae-worker.log
stopwaitsecs=3600