mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-30 09:04:27 +00:00
Add missing autorestart for supervisord config
This commit is contained in:
parent
6e3066bd9b
commit
191ce39d14
3 changed files with 12 additions and 4 deletions
|
@ -7,6 +7,7 @@ pidfile=data/supervisord.pid
|
|||
[program:uvicorn]
|
||||
command=uvicorn app.main:app --no-server-header --host 0.0.0.0
|
||||
numprocs=1
|
||||
autorestart=true
|
||||
redirect_stderr=true
|
||||
stdout_logfile=data/uvicorn.log
|
||||
stdout_logfile_maxbytes=50MB
|
||||
|
@ -14,6 +15,7 @@ stdout_logfile_maxbytes=50MB
|
|||
[program:incoming_worker]
|
||||
command=inv process-incoming-activities
|
||||
numproc=1
|
||||
autorestart=true
|
||||
redirect_stderr=true
|
||||
stdout_logfile=data/incoming.log
|
||||
stdout_logfile_maxbytes=50MB
|
||||
|
@ -21,6 +23,7 @@ stdout_logfile_maxbytes=50MB
|
|||
[program:outgoing_worker]
|
||||
command=inv process-outgoing-activities
|
||||
numproc=1
|
||||
autorestart=true
|
||||
redirect_stderr=true
|
||||
stdout_logfile=data/outgoing.log
|
||||
stdout_logfile_maxbytes=50MB
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
[program:uvicorn]
|
||||
command=%(ENV_VENV_DIR)s/bin/uvicorn app.main:app --no-server-header
|
||||
numprocs=1
|
||||
autorestart=true
|
||||
redirect_stderr=true
|
||||
stdout_logfile=uvicorn.log
|
||||
stdout_logfile_maxbytes=50MB
|
||||
|
@ -10,6 +11,7 @@ stdout_logfile_maxbytes=50MB
|
|||
[program:incoming_worker]
|
||||
command=%(ENV_VENV_DIR)s/bin/inv process-incoming-activities
|
||||
numproc=1
|
||||
autorestart=true
|
||||
redirect_stderr=true
|
||||
stdout_logfile=incoming_worker.log
|
||||
stdout_logfile_maxbytes=50MB
|
||||
|
@ -17,6 +19,7 @@ stdout_logfile_maxbytes=50MB
|
|||
[program:outgoing_worker]
|
||||
command=%(ENV_VENV_DIR)s/bin/inv process-outgoing-activities
|
||||
numproc=1
|
||||
autorestart=true
|
||||
redirect_stderr=true
|
||||
stdout_logfile=outgoing_worker.log
|
||||
stdout_logfile_maxbytes=50MB
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
[supervisord]
|
||||
|
||||
[fcgi-program:uvicorn]
|
||||
socket=tcp://localhost:%(ENV_UVICORN_PORT)s
|
||||
command=%(ENV_VENV_DIR)s/bin/uvicorn app.main:app --no-server-header --fd 0
|
||||
numprocs=2
|
||||
[program:uvicorn]
|
||||
command=%(ENV_VENV_DIR)s/bin/uvicorn app.main:app --no-server-header
|
||||
numprocs=1
|
||||
autorestart=true
|
||||
process_name=uvicorn-%(process_num)d
|
||||
redirect_stderr=true
|
||||
stdout_logfile=%(ENV_LOG_PATH)s/uvicorn.log
|
||||
|
@ -12,6 +12,7 @@ stdout_logfile_maxbytes=0
|
|||
[program:incoming_worker]
|
||||
command=%(ENV_VENV_DIR)s/bin/inv process-incoming-activities
|
||||
numproc=1
|
||||
autorestart=true
|
||||
redirect_stderr=true
|
||||
stdout_logfile=%(ENV_LOG_PATH)s/incoming.log
|
||||
stdout_logfile_maxbytes=0
|
||||
|
@ -19,6 +20,7 @@ stdout_logfile_maxbytes=0
|
|||
[program:outgoing_worker]
|
||||
command=%(ENV_VENV_DIR)s/bin/inv process-outgoing-activities
|
||||
numproc=1
|
||||
autorestart=true
|
||||
redirect_stderr=true
|
||||
stdout_logfile=%(ENV_LOG_PATH)s/outgoing.log
|
||||
stdout_logfile_maxbytes=0
|
||||
|
|
Loading…
Reference in a new issue